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
package/dist/index.d.ts
CHANGED
|
@@ -1,114 +1,1023 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { A as SupportedChainId, C as SupportedTokenSymbol, D as TokenOrAddress, E as TokenInfo, O as SwapProvider, S as LendActionItem, T as TokenAccessor, _ as CustomActionItem, a as AssertActionItem, b as FeePercent, c as AssertNativeBalanceItem, d as BuildCallParams, f as Call, g as ChainName, h as ChainIdentifier, j as SupportedChainName, k as SwapType, l as AssertNotExpiredItem, m as ChainId, n as ActionDirection, o as AssertERC20AllowanceItem, p as CallWithData, r as ActionItem, s as AssertERC20BalanceItem, t as ActionAmount, u as BuildApproveAndCallParams, v as DepositActionItem, w as SwapActionItem, x as HydrateTypeData, y as Erc20Utils } from "./types-BK0WkVnx.js";
|
|
4
|
+
import { A as deposit, C as DynamicAmount, D as self, E as isSelfAddress, M as swap, O as assertCondition, S as resolveActionsToCalls, T as isDynamicAmount, _ as DestinationCallsInput, a as SushiSwapV3QuoteSwapResponse, b as flattenDestinationCalls, c as SushiSwapV3SwapExactOutputSingleParams, d as UniswapV3GetPoolParams, f as UniswapV3QuoteSwapParams, g as UniswapV3SwapExactOutputSingleParams, h as UniswapV3SwapExactInputSingleParams, i as SushiSwapV3QuoteSwapParams, j as lend, k as custom, l as uniswapV3, m as UniswapV3QuoteSwapType, n as SushiSwapV3ChainScoped, o as SushiSwapV3QuoteSwapType, p as UniswapV3QuoteSwapResponse, r as SushiSwapV3GetPoolParams, s as SushiSwapV3SwapExactInputSingleParams, t as sushiswapV3, u as UniswapV3ChainScoped, v as EncodedDestinationCalls, w as dynamic, x as ResolveActionsToCallsParams, y as encodeDestinationCalls } from "./sushiswapV3-D3h41LNZ.js";
|
|
5
|
+
import { A as Provider, C as EarnMarketMetadata, D as EarnMarketStatus, E as EarnMarketStatistics, M as ProviderType, O as EarnMarketToken, S as EarnMarketArguments, T as EarnMarketRewardRateComponent, _ as EarnBalanceError, a as GetProvidersParams, b as EarnMarket, c as buildCall, d as getAmountWithSlippage, f as getEarnBalances, g as EarnBalance, h as EarnActionArgs, i as GetMarketsResult, j as ProviderId, k as EarnType, l as buildErc20Approve, m as getEarnProviders, n as GetEarnBalancesResult, o as GetProvidersResult, p as getEarnMarkets, r as GetMarketsParams, s as buildApproveAndCall, t as GetEarnBalancesParams, u as erc20Utils, v as EarnBalanceQuery, w as EarnMarketRewardRate, x as EarnMarketArgumentField, y as EarnBalances } from "./utils-KPnWBA9x.js";
|
|
6
|
+
import { t as Token } from "./tokenTypes-D812t5L9.js";
|
|
7
|
+
import { n as QuoteErrorCode, t as QuoteError } from "./quoteError-CmTH5Qm2.js";
|
|
8
|
+
import { $ as getIsRateLimitedError, A as resolveChainName, B as TrailsErrorBoundary, C as SwapReturn, E as useQuote, F as Chain, G as getFullErrorMessage, H as UserRejectionError, I as getAllChains, J as getIsInsufficientLiquidityError, K as getIsApiError, L as InsufficientBalanceError, M as getPublicClient, N as getSupportedChains, P as getRpcUrl, Q as getIsQuoteTokenError, R as TrailsApiClientError, T as UseQuoteReturn, U as getErrorBoundary, V as TrailsErrorCode, W as getErrorCode, X as getIsQuoteFailedError, Y as getIsNoAvailableQuoteError, Z as getIsQuoteInputError, _ as buildEdgeQuoteRequestFromOriginConfig, a as UnifiedWalletProvider, at as isTrailsError, b as Quote, c as SOLANA_MAINNET_CHAIN_ID, ct as IntentTransactionHistoryResponse, d as prepareSend, dt as UseAccountTransactionHistoryParams, et as getIsRequiredAmountNotMetError, f as FundMethod, ft as UseAccountTransactionHistoryReturn, g as buildEdgeQuoteRequestFromDestinationConfig, h as EdgeWalletConfigs, ht as useAccountTransactionHistory, i as SvmWalletAdapter, it as isTrailsApiClientError, j as getChainInfo, k as resolveChainId, l as isSolanaChainId, lt as TransactionHistoryResponse, m as TradeType, mt as getTxTimeDiff, nt as getIsWalletAlreadyConnectedError, o as useOptionalSolanaWalletContext, ot as GetAccountTransactionHistoryParams, pt as getAccountTransactionHistory, q as getIsBalanceTooLowError, r as SolanaWalletContextValue, rt as getPrettifiedErrorMessage, s as useOptionalSvmWalletContext, st as IntentTransaction, t as Mode, tt as getIsUserRejectionError, u as RouteProvider, ut as TransactionState, v as getEdgeOriginConfig, w as UseQuoteProps, y as toEdgeWalletConfigs, z as TrailsError } from "./useViewManager-BeUH_k1s.js";
|
|
9
|
+
import { C as getTokenAddress, S as getSupportedTokens, _ as isSolanaEdgeDestinationConfig, a as useEdgePluginForChain, b as getCommonTokenImageUrl, c as EDGE_RAIL, d as EdgeRailId, g as createSolanaEdgeOriginConfig, h as createSolanaEdgeDestinationConfig, l as EdgeDestinationConfig, m as SolanaEdgeWalletConfig, n as EdgeDepositParams, o as useEdgePluginForDestinationChain, r as EdgePlugin, s as useEdgePlugins, t as BuildEdgeDestinationConfigOptions, u as EdgeOriginConfig, v as isSolanaEdgeOriginConfig, w as getTokenInfo, x as getSequenceMetadataTokenImageUrl, y as convertApiTokenInfoToToken } from "./edge-DmNcuJar.js";
|
|
10
|
+
import { $ as getEdgeSolanaRpcUrl, A as useTokenPrice, At as getTrailsClient, B as TokenBalance, C as useFiatCurrencyList, Ct as TrailsSendTransactionVariables, D as usePublicClient, Dt as IntentReceiptStatus, E as useIndexerGatewayClient, Et as useTrailsSendTransaction, F as useTokenAddress, G as useHasSufficientBalanceUsd, H as UseHasSufficientBalanceUsdParams, I as useTokenInfo, J as FetchTokenBalanceOnchainReturn, K as useTokenBalances, L as useTokenList, M as useGetSequenceMetadataTokenImageUrl, N as useGetTokenImageUrl, O as usePublicClientGetter, Ot as useIntentReceiptMonitor, P as useSupportedTokens, Q as PUBLIC_SOLANA_MAINNET_JSON_RPC, R as MIN_REFETCH_INTERVAL, S as useExchangeRate, St as useGetIntent, T as useCountryList, Tt as UseTrailsSendTransactionReturnType, U as useAccountTotalBalanceUsd, V as UseHasSufficientBalanceTokenParams, W as useHasSufficientBalanceToken, X as GetTokenBalancesWithPriceReturn, Y as GetTokenBalancesForMultipleAccountsReturn, Z as checkSufficientToken, _ as getOnrampClient, _t as UseIntentTransactionHistoryParams, a as BuildRefundTransactionWithSignatureParams, at as useResolveActions, b as useMeldPaymentMethods, bt as UseGetIntentParams, c as UseIntentRecoverWithAddressParams, ct as useEarnProviders, d as UseKeymachineIntentRecoveryReturn, dt as useEarnBalances, et as getEdgeSolanaRpcUrls, f as buildRefundTransactionWithSignature, ft as UseEarnMarketsParams, g as useKeymachineIntentRecovery, gt as useExecuteIntent, h as useIntentRecoverWithAddress, ht as useCommitIntent, i as useOfflineIntentRecovery, it as UseResolveActionsReturn, j as useTokenPrices, jt as useTrailsClient, k as useSupportedChains, kt as TrailsClient, l as UseIntentRecoverWithAddressReturn, lt as UseEarnBalancesParams, m as useIntentRecover, mt as useEarnMarkets, n as UseOfflineIntentRecoveryReturn, nt as resolveSolanaMainnetJsonRpcUrls, o as UseIntentRecoverParams, ot as UseEarnProvidersParams, p as signPayload, pt as UseEarnMarketsReturn, q as useTokenBalancesForMultipleAccounts, r as fetchIntentTokenBalancesViaRpc, rt as UseResolveActionsProps, s as UseIntentRecoverReturn, st as UseEarnProvidersReturn, t as UseOfflineIntentRecoveryParams, tt as resolveSolanaMainnetJsonRpcUrl, u as UseKeymachineIntentRecoveryParams, ut as UseEarnBalancesReturn, v as useOnrampClient, vt as UseIntentTransactionHistoryReturn, w as useCountryCode, wt as UseTrailsSendTransactionParameters, x as useMeldServiceProviders, xt as UseGetIntentReturn, y as TrailsOnramp, yt as useIntentTransactionHistory, z as NativeTokenBalance } from "./offlineRecovery-BfgccnFf.js";
|
|
11
|
+
import { n as encodeMulticallHydrateExecute, t as createHydratePayload } from "./multicall-BCUHt_9t.js";
|
|
12
|
+
import { $ as WrappedTrailsAdapterEntry, A as TrailsWidget, B as getActiveMeshMode, C as PaymentMethod, D as TrailsConnectWalletInitialPendingWallet, E as TrailsConnectWallet, F as WidgetFundMethod, G as SequenceEnv, H as useTrailsOnRamp, I as MeshConfig, J as TrailsAdapterManagedBy, K as TrailsAdapterConfig, L as TrailsOnRampConfig, M as createModalController, N as FundMethodListOption, O as TrailsConnectWalletProps, P as TrailsWidgetProps, Q as TrailsProviderConfig, R as TrailsOnRampProvider, S as FiatPaymentMethod, T as TrailsConnectDialogProps, U as EvmAdapterOptions, V as isMeshEnabled, W as evmAdapter, X as TrailsConfig, Y as TrailsAdapterProviderProps, Z as TrailsProvider, _ as DevConfig, a as Earn, at as TrailsWaasFeeOptionsControllerValue, b as CryptoPaymentMethod, c as PayProps, ct as TrailsModalProvider, d as Withdraw, et as useTrails, f as WithdrawProps, g as DestinationConfig, h as AppMetadata, i as resolveTokenAddress, it as TrailsWaasFeeOptionsControllerProps, j as TrailsWidgetRef, k as TrailsHookModal, l as Fund, lt as useTrailsModal, m as SwapProps, n as ResolvedTokenInput, nt as TrailsSequenceSupportConfig, o as EarnProps, ot as ModalSelectionParams, p as Swap, q as TrailsAdapterEntry, r as resolveTokenInput, rt as TrailsWaasFeeOptionConfirmation, s as Pay, st as TrailsModalContextType, t as useWalletSession, tt as TrailsSequenceSupport, u as FundProps, v as OptionalDestinationConfig, w as TrailsConnectDialog, x as ExchangePaymentMethod, y as SharedWidgetProps, z as TrailsOnRampProviderProps } from "./index-CMdwQmYL.js";
|
|
13
|
+
import { Config, Payload } from "@0xsequence/wallet-primitives";
|
|
14
|
+
import { AbortIntentResponse, CommitIntentResponse, Country, DepositSignature, EdgeMode, EdgeQuoteRequest, ExchangeRate, ExecuteIntentRequest, ExecuteIntentResponse, ExecuteIntentResponse as ExecuteIntentResponse$1, FiatCurrency, GasFeeOptions, GetIntentReceiptRequest, GetIntentReceiptResponse, GetIntentResponse, Intent, Intent as Intent$1, Intent as Intent$2, IntentProtocolVersion, IntentReceipt, IntentReceipt as IntentReceipt$1, IntentStatus, IntentTransaction as IntentTransactionReceipt, PassthroughInfo, QuoteIntentEdgeRequest, QuoteIntentEdgeResponse, QuoteIntentRequest, QuoteIntentRequest as QuoteIntentRequest$1, Token as Token$1, TokenInfo as TokenInfo$1, TokenPrice, TradeType as TradeType$1, TrailsApi, TransactionStateInfo, TransactionStatus, WaitIntentReceiptRequest, WaitIntentReceiptResponse } from "@0xtrails/api";
|
|
15
|
+
import { Account, Chain as Chain$1, PublicClient, WalletClient } from "viem";
|
|
16
|
+
import React from "react";
|
|
17
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
18
|
+
import { CreateEvmAdapterOptions, Eip1193ProviderLike, EvmChainConfig, EvmWalletDescriptor, RuntimeWalletClientConnection, TrailsWalletClient, TrailsWalletClient as TrailsWalletClient$1, TrailsWalletConnection, WalletConnectorLike, WalletDescriptor, WalletRuntimeConnector, checkProviderHealth, isSequenceWallet, isTrailsWalletClient, isWalletConnectConnector, signWithTimeout, wrapWalletClient } from "@0xtrails/wallet";
|
|
19
|
+
import { SEQUENCE_EMBEDDED_WALLET_ID, getWalletIconUrl, getWalletName, getWalletRegistry, isSequenceEmbeddedWalletId, isSequenceWalletId as isSequenceWalletById, topShownWallets } from "@0xtrails/wallet/registry";
|
|
20
|
+
import { Address, Hex } from "ox";
|
|
21
|
+
import { SequenceIndexerGateway } from "@0xsequence/indexer";
|
|
22
|
+
import { CreateMeshLinkTokenResponse, GetMeldServiceProvidersRequest, GetMeshSupportedTokensRequest, MeldCryptoCurrency, MeldFiatCurrency, MeldPaymentMethod, MeldServiceProvider, MeldTransaction, MeshIntegration, MeshSupportedToken } from "@0xtrails/api/onramp";
|
|
23
|
+
|
|
24
|
+
//#region src/version.d.ts
|
|
25
|
+
declare const SDK_VERSION: string;
|
|
26
|
+
declare function getVersion(): string;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/explorer.d.ts
|
|
29
|
+
type ExplorerUrlParams = {
|
|
30
|
+
txHash: string;
|
|
31
|
+
chainId: number;
|
|
32
|
+
};
|
|
33
|
+
declare function getExplorerUrl({
|
|
34
|
+
txHash,
|
|
35
|
+
chainId
|
|
36
|
+
}: ExplorerUrlParams): string;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/abortController.d.ts
|
|
39
|
+
declare const abortControllerRegistry: {
|
|
40
|
+
register: (id: string, controller: AbortController) => void;
|
|
41
|
+
unregister: (id: string) => void;
|
|
42
|
+
abort: (id: string) => void;
|
|
43
|
+
abortAll: () => void;
|
|
44
|
+
getAll: () => string[];
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/contractUtils.d.ts
|
|
48
|
+
declare function getIsContract(address: `0x${string}`, chainId: number, publicClient?: PublicClient): Promise<boolean>;
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/query/chains.queries.d.ts
|
|
51
|
+
declare const chainQueries: {
|
|
52
|
+
all: readonly ["chains"];
|
|
53
|
+
supported: (config?: {
|
|
54
|
+
trailsApiUrl?: string;
|
|
55
|
+
trailsApiKey?: string;
|
|
56
|
+
}) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<Chain[], Error, Chain[], readonly unknown[]>, "queryFn"> & {
|
|
57
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<Chain[], readonly unknown[], never> | undefined;
|
|
58
|
+
} & {
|
|
59
|
+
queryKey: readonly unknown[] & {
|
|
60
|
+
[dataTagSymbol]: Chain[];
|
|
61
|
+
[dataTagErrorSymbol]: Error;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/query/geo.queries.d.ts
|
|
67
|
+
declare const geoQueries: {
|
|
68
|
+
all: readonly ["geo"];
|
|
69
|
+
countryCode: () => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<string, Error, string, readonly unknown[]>, "queryFn"> & {
|
|
70
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<string, readonly unknown[], never> | undefined;
|
|
71
|
+
} & {
|
|
72
|
+
queryKey: readonly unknown[] & {
|
|
73
|
+
[dataTagSymbol]: string;
|
|
74
|
+
[dataTagErrorSymbol]: Error;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
countryList: (trailsClient: TrailsClient | null | undefined) => import("@tanstack/react-query").UseQueryOptions<Country[], Error, Country[], readonly unknown[]> & {
|
|
78
|
+
initialData?: Country[] | import("@tanstack/react-query").InitialDataFunction<Country[]> | undefined;
|
|
79
|
+
} & {
|
|
80
|
+
queryKey: readonly unknown[] & {
|
|
81
|
+
[dataTagSymbol]: Country[];
|
|
82
|
+
[dataTagErrorSymbol]: Error;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/query/geo.fetchers.d.ts
|
|
88
|
+
declare const fetchCountryCode: () => Promise<string>;
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/chainSwitch.d.ts
|
|
91
|
+
type AttemptSwitchChainParams = {
|
|
92
|
+
walletClient: WalletClient;
|
|
93
|
+
desiredChainId: number;
|
|
94
|
+
};
|
|
95
|
+
declare function attemptSwitchChain({
|
|
96
|
+
walletClient,
|
|
97
|
+
desiredChainId
|
|
98
|
+
}: AttemptSwitchChainParams): Promise<void>;
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/utils.d.ts
|
|
101
|
+
/**
|
|
102
|
+
* Encodes ERC20 transfer function call data
|
|
103
|
+
* @param to - The recipient address
|
|
104
|
+
* @param amount - The amount to transfer (in token's smallest unit)
|
|
105
|
+
* @returns Encoded transfer function call data
|
|
106
|
+
*/
|
|
107
|
+
declare function getERC20TransferData(to: string, amount: bigint): string;
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/intents.d.ts
|
|
110
|
+
interface MetaTxnFeeDetail {
|
|
111
|
+
metaTxnID: string;
|
|
112
|
+
estimatedGasLimit: string;
|
|
113
|
+
feeNative: string;
|
|
114
|
+
}
|
|
115
|
+
interface ChainExecuteQuote {
|
|
116
|
+
chainId: string;
|
|
117
|
+
totalGasLimit: string;
|
|
118
|
+
gasPrice: string;
|
|
119
|
+
totalFeeAmount: string;
|
|
120
|
+
nativeTokenSymbol: string;
|
|
121
|
+
nativeTokenPrice?: string;
|
|
122
|
+
metaTxnFeeDetails: Array<MetaTxnFeeDetail>;
|
|
123
|
+
totalFeeUSD?: string;
|
|
124
|
+
}
|
|
125
|
+
interface ExecuteQuote {
|
|
126
|
+
chainQuotes: Array<ChainExecuteQuote>;
|
|
127
|
+
}
|
|
128
|
+
interface CrossChainFee {
|
|
129
|
+
providerFee: string;
|
|
130
|
+
trailsSwapFee: string;
|
|
131
|
+
providerFeeUSD: number;
|
|
132
|
+
trailsSwapFeeUSD: number;
|
|
133
|
+
totalFeeAmount: string;
|
|
134
|
+
totalFeeUSD: number;
|
|
135
|
+
}
|
|
136
|
+
interface TrailsFee {
|
|
137
|
+
executeQuote: ExecuteQuote;
|
|
138
|
+
crossChainFee?: CrossChainFee;
|
|
139
|
+
trailsFixedFeeUSD?: number;
|
|
140
|
+
feeToken?: string;
|
|
141
|
+
originTokenTotalAmount?: string;
|
|
142
|
+
totalFeeAmount?: string;
|
|
143
|
+
totalFeeUSD?: string;
|
|
144
|
+
}
|
|
145
|
+
type OriginCallParams = {
|
|
146
|
+
to: `0x${string}` | null;
|
|
147
|
+
data: Hex.Hex | null;
|
|
148
|
+
value: bigint | null;
|
|
149
|
+
chainId: number | null;
|
|
150
|
+
error?: string;
|
|
151
|
+
};
|
|
152
|
+
type SendOriginCallTxArgs = {
|
|
153
|
+
to: string;
|
|
154
|
+
data: Hex.Hex;
|
|
155
|
+
value: bigint;
|
|
156
|
+
chain: Chain$1;
|
|
157
|
+
gasLimit?: bigint;
|
|
158
|
+
maxFeePerGas?: bigint;
|
|
159
|
+
maxPriorityFeePerGas?: bigint;
|
|
160
|
+
};
|
|
161
|
+
declare function quoteIntent(trailsClient: TrailsApi, args: QuoteIntentRequest$1, additionalTrackingProps?: Record<string, string>, abortSignal?: AbortSignal): Promise<{
|
|
162
|
+
intent: Intent$2;
|
|
163
|
+
gasFeeOptions?: GasFeeOptions;
|
|
164
|
+
passthrough?: PassthroughInfo;
|
|
165
|
+
transactionStates?: TransactionStateInfo[];
|
|
166
|
+
}>;
|
|
167
|
+
declare function quoteIntentEdge(trailsClient: TrailsApi, args: QuoteIntentEdgeRequest, additionalTrackingProps?: Record<string, string>, abortSignal?: AbortSignal): Promise<QuoteIntentEdgeResponse>;
|
|
168
|
+
declare function commitIntent(trailsClient: TrailsClient, intent: Intent$2, additionalTrackingProps?: Record<string, string>): Promise<CommitIntentResponse>;
|
|
169
|
+
declare function sendOriginTransaction(account: Account, trailsWalletClient: TrailsWalletClient$1, originParams: SendOriginCallTxArgs, additionalTrackingProps?: Record<string, string>): Promise<`0x${string}`>;
|
|
170
|
+
/**
|
|
171
|
+
* Fetches intent data from the Trails API
|
|
172
|
+
* @param trailsClient - TrailsClient instance
|
|
173
|
+
* @param intentId - The intent ID to fetch
|
|
174
|
+
* @returns Promise resolving to the intent data
|
|
175
|
+
*/
|
|
176
|
+
declare function getIntent(trailsClient: TrailsClient, intentId: string): Promise<GetIntentResponse>;
|
|
177
|
+
/**
|
|
178
|
+
* Abort an intent after a successful recovery
|
|
179
|
+
* This should be called after the recover function executes successfully
|
|
180
|
+
*
|
|
181
|
+
* @param trailsClient - The Trails API client
|
|
182
|
+
* @param intentId - The ID of the intent to abort
|
|
183
|
+
* @param chainId - The chain ID where the recovery transaction was executed
|
|
184
|
+
* @param abortTransactionHash - The transaction hash from the recovery
|
|
185
|
+
* @returns Promise resolving to the abort response with intent status
|
|
186
|
+
*/
|
|
187
|
+
declare function abortIntent(trailsClient: TrailsClient, intentId: string, chainId: number, abortTransactionHash: string): Promise<AbortIntentResponse>;
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/solana/solanaTokenCatalog.d.ts
|
|
190
|
+
/** Solana SOL native token sentinel (system program address). */
|
|
191
|
+
declare const SOLANA_SOL_MINT = "11111111111111111111111111111111";
|
|
192
|
+
/** Solana USDC SPL mint address. */
|
|
193
|
+
declare const SOLANA_USDC_MINT = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
|
|
194
|
+
/** Solana USDT SPL mint address. */
|
|
195
|
+
declare const SOLANA_USDT_MINT = "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB";
|
|
196
|
+
/** Solana PYUSD SPL mint address. */
|
|
197
|
+
declare const SOLANA_PYUSD_MINT = "2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo";
|
|
198
|
+
/**
|
|
199
|
+
* trails-api does not price native SOL (chainId 101) directly. The SDK queries
|
|
200
|
+
* the Wormhole-wrapped SOL ERC-20 on Ethereum and maps the price back to SOL.
|
|
201
|
+
*/
|
|
202
|
+
declare const SOLANA_NATIVE_PRICE_PROXY: {
|
|
203
|
+
readonly chainId: 1;
|
|
204
|
+
readonly tokenAddress: "0xD31a59c85AE9D8edEFeC411D448f90841571b89c";
|
|
205
|
+
};
|
|
206
|
+
/** Resolves a known Solana mint address to its Token descriptor. */
|
|
207
|
+
declare function getSolanaToken(mintAddress: string): Token | null;
|
|
208
|
+
/** Known Solana tokens from the shared catalog. */
|
|
209
|
+
declare function getSolanaTokens(): Token[];
|
|
210
|
+
/** Returns true if the mint is a known Solana SPL stablecoin (USDC/USDT/PYUSD). */
|
|
211
|
+
declare function isSolanaStablecoinMint(mint: string | null | undefined): boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Returns the hardcoded USD price for a Solana token when trails-api cannot
|
|
214
|
+
* price it, or undefined if a live API fetch is required.
|
|
215
|
+
* - Native SOL → undefined (priced via {@link SOLANA_NATIVE_PRICE_PROXY})
|
|
216
|
+
* - Stablecoin SPL → 1
|
|
217
|
+
* - All other SPL → undefined (priced via API)
|
|
218
|
+
*/
|
|
219
|
+
declare function getSolanaTokenPriceUsd(token: Token): number | undefined;
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/edge/constants.d.ts
|
|
222
|
+
/**
|
|
223
|
+
* Relay edge chain id for Solana. Used in edge API requests (both origin and destination modes).
|
|
224
|
+
* This is not the SDK UI chain id {@link SOLANA_MAINNET_CHAIN_ID} (101).
|
|
225
|
+
*/
|
|
226
|
+
declare const SOLANA_EDGE_CHAIN_ID = 792703809;
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region src/edge/buildQuoteIntentEdgeRequest.d.ts
|
|
229
|
+
type EdgeQuoteRequestInput = {
|
|
230
|
+
mode: typeof EdgeMode.ORIGIN;
|
|
231
|
+
solanaAddressBase58: string;
|
|
232
|
+
originTokenMint: string;
|
|
233
|
+
edgeTradeType?: TradeType$1;
|
|
234
|
+
originTokenAmount?: bigint;
|
|
235
|
+
refundAddress?: string; /** When set, restricts edge quoting to Relay (API validates). */
|
|
236
|
+
providerRelayOnly?: boolean;
|
|
237
|
+
} | {
|
|
238
|
+
mode: typeof EdgeMode.DESTINATION;
|
|
239
|
+
destinationChainId: number;
|
|
240
|
+
destinationAddress: string;
|
|
241
|
+
destinationTokenAddress: string;
|
|
242
|
+
edgeTradeType?: TradeType$1; /** Solana-side output amount for EXACT_OUTPUT (edge `originTokenAmount`). */
|
|
243
|
+
originTokenAmount?: bigint;
|
|
244
|
+
};
|
|
245
|
+
declare function buildEdgeQuoteRequest(input: EdgeQuoteRequestInput): EdgeQuoteRequest;
|
|
246
|
+
/**
|
|
247
|
+
* Builds the inner QuoteIntentRequest for a QuoteIntentEdge call.
|
|
248
|
+
* ORIGIN mode: zeroes out origin fields (Solana side communicated via edge request).
|
|
249
|
+
* DESTINATION mode: zeroes out destination fields (Solana side communicated via edge request).
|
|
250
|
+
*/
|
|
251
|
+
declare function buildEdgeInnerQuoteIntentRequest(full: QuoteIntentRequest$1, edgeTradeType: TradeType$1, mode: EdgeMode): QuoteIntentRequest$1;
|
|
252
|
+
declare function buildQuoteIntentEdgeRequest(input: {
|
|
253
|
+
inner: QuoteIntentRequest$1;
|
|
254
|
+
edge: EdgeQuoteRequest;
|
|
255
|
+
}): QuoteIntentEdgeRequest;
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region src/intentReceiptPoller.d.ts
|
|
258
|
+
/**
|
|
259
|
+
* Callback invoked when the deposit transaction hash is discovered (for gasless flows).
|
|
260
|
+
* @param txHash - The transaction hash of the deposit transaction
|
|
261
|
+
* @param receipt - The full IntentReceipt containing additional metadata
|
|
262
|
+
*/
|
|
263
|
+
type OnDepositTransactionFound = (txHash: string, receipt: IntentReceipt$1) => Promise<void>;
|
|
264
|
+
/**
|
|
265
|
+
* Callback invoked when the origin transaction hash is discovered.
|
|
266
|
+
* @param txHash - The transaction hash of the origin transaction
|
|
267
|
+
* @param receipt - The full IntentReceipt containing additional metadata
|
|
268
|
+
*/
|
|
269
|
+
type OnOriginTransactionFound = (txHash: string, receipt: IntentReceipt$1) => Promise<void>;
|
|
270
|
+
/**
|
|
271
|
+
* Callback invoked when the destination transaction hash is discovered.
|
|
272
|
+
* @param txHash - The transaction hash of the destination transaction
|
|
273
|
+
* @param receipt - The full IntentReceipt containing additional metadata
|
|
274
|
+
*/
|
|
275
|
+
type OnDestinationTransactionFound = (txHash: string, receipt: IntentReceipt$1) => Promise<void>;
|
|
276
|
+
/**
|
|
277
|
+
* Callback invoked when the intent receipt is updated (regardless of which field changed).
|
|
278
|
+
* @param receipt - The full IntentReceipt
|
|
279
|
+
* @param done - Whether the intent has reached a terminal status
|
|
280
|
+
*/
|
|
281
|
+
type OnReceiptUpdate = (receipt: IntentReceipt$1, done: boolean, receiptStates?: string[]) => Promise<void>;
|
|
282
|
+
interface IntentReceiptPollerCallbacks {
|
|
283
|
+
onDepositTransactionFound?: OnDepositTransactionFound;
|
|
284
|
+
onOriginTransactionFound?: OnOriginTransactionFound;
|
|
285
|
+
onDestinationTransactionFound?: OnDestinationTransactionFound;
|
|
286
|
+
onReceiptUpdate?: OnReceiptUpdate;
|
|
287
|
+
}
|
|
288
|
+
interface IntentReceiptPollerOptions {
|
|
289
|
+
intentId: string;
|
|
290
|
+
trailsClient: TrailsClient;
|
|
291
|
+
callbacks?: IntentReceiptPollerCallbacks;
|
|
292
|
+
maxWaitTime?: number;
|
|
293
|
+
pollInterval?: number;
|
|
294
|
+
abortSignal?: AbortSignal;
|
|
295
|
+
waitForEdgeCompletion?: boolean;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Unified intent receipt poller that monitors a single intent ID and invokes callbacks
|
|
299
|
+
* as origin and destination transactions are discovered. This consolidates what was
|
|
300
|
+
* previously done via separate polling loops.
|
|
301
|
+
*
|
|
302
|
+
* @param options - Configuration for polling including intent ID, client, and callbacks
|
|
303
|
+
* @returns A promise that resolves when the intent reaches a terminal status or times out
|
|
304
|
+
*
|
|
305
|
+
* Usage:
|
|
306
|
+
* ```
|
|
307
|
+
* const poller = pollIntentReceipt({
|
|
308
|
+
* intentId: intent.intentId,
|
|
309
|
+
* trailsClient,
|
|
310
|
+
* callbacks: {
|
|
311
|
+
* onOriginTransactionFound: async (txHash, receipt) => {
|
|
312
|
+
* // Handle origin transaction discovery
|
|
313
|
+
* },
|
|
314
|
+
* onDestinationTransactionFound: async (txHash, receipt) => {
|
|
315
|
+
* // Handle destination transaction discovery
|
|
316
|
+
* },
|
|
317
|
+
* onReceiptUpdate: async (receipt, done) => {
|
|
318
|
+
* // Handle any receipt update
|
|
319
|
+
* },
|
|
320
|
+
* },
|
|
321
|
+
* })
|
|
322
|
+
* ```
|
|
323
|
+
*/
|
|
324
|
+
declare function pollIntentReceipt(options: IntentReceiptPollerOptions): Promise<IntentReceipt$1 | null>;
|
|
325
|
+
//#endregion
|
|
326
|
+
//#region src/intentProtocolEncoding.d.ts
|
|
327
|
+
type DestinationEncodingErrorCode = "UNSAFE_PLACEHOLDER_MATCH" | "MISSING_AMOUNT_SLOT" | "MULTIPLE_AMOUNT_SLOTS" | "INVALID_DESTINATION_CALLDATA";
|
|
328
|
+
declare class DestinationEncodingError extends Error {
|
|
329
|
+
readonly code: DestinationEncodingErrorCode;
|
|
330
|
+
constructor(code: DestinationEncodingErrorCode, message: string, cause?: unknown);
|
|
331
|
+
}
|
|
332
|
+
type DestinationEncodingStrategy = "none" | "v1_5_trails_utils_hydrate";
|
|
333
|
+
interface EncodeDestinationForIntentProtocolParams {
|
|
334
|
+
intentProtocol: IntentProtocolVersion;
|
|
335
|
+
destinationAddress: string;
|
|
336
|
+
destinationCalldata: string;
|
|
337
|
+
destinationApprovalAddress?: string;
|
|
338
|
+
isExactInput: boolean;
|
|
339
|
+
hasCustomCalldata: boolean;
|
|
340
|
+
swapAmount: string;
|
|
341
|
+
originChainId: number;
|
|
342
|
+
destinationChainId: number;
|
|
343
|
+
originTokenAddress: string;
|
|
344
|
+
destinationTokenAddress: string;
|
|
345
|
+
trailsUtilsAddress: string;
|
|
346
|
+
}
|
|
347
|
+
interface EncodeDestinationForIntentProtocolResult {
|
|
348
|
+
destinationAddress: string;
|
|
349
|
+
destinationCalldata: `0x${string}`;
|
|
350
|
+
destinationApprovalAddress?: string;
|
|
351
|
+
strategy: DestinationEncodingStrategy;
|
|
352
|
+
}
|
|
353
|
+
declare function encodeDestinationForIntentProtocol(params: EncodeDestinationForIntentProtocolParams): EncodeDestinationForIntentProtocolResult;
|
|
354
|
+
//#endregion
|
|
355
|
+
//#region src/widgetFlowHooks.d.ts
|
|
356
|
+
type UseSendTransactionParameters = UseTrailsSendTransactionParameters;
|
|
357
|
+
type UseSendTransactionReturn = UseTrailsSendTransactionReturnType;
|
|
358
|
+
declare function useSendTransaction(params?: UseSendTransactionParameters): UseSendTransactionReturn;
|
|
359
|
+
type UseWidgetModalReturn = Omit<TrailsModalContextType, "isModalOpen" | "openModal" | "closeModal"> & {
|
|
360
|
+
isOpen: boolean;
|
|
361
|
+
open: () => void;
|
|
362
|
+
close: () => void;
|
|
363
|
+
};
|
|
364
|
+
declare function useWidgetModal(): UseWidgetModalReturn;
|
|
365
|
+
//#endregion
|
|
366
|
+
//#region src/smartContractWallet.d.ts
|
|
367
|
+
/**
|
|
368
|
+
* Checks if an address is a smart contract wallet.
|
|
369
|
+
* @param address - The wallet address to check
|
|
370
|
+
* @param chainId - The chain ID to check the wallet on
|
|
371
|
+
* @returns Promise that resolves to true if the address is a smart contract, false otherwise
|
|
372
|
+
*/
|
|
373
|
+
declare function isSmartContractWallet(address: string, chainId: number): Promise<boolean>;
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region src/query/balance.queries.d.ts
|
|
376
|
+
declare const balanceQueries: {
|
|
377
|
+
all: readonly ["balances"];
|
|
378
|
+
multiAccounts: () => readonly ["balances", "multiAccount"];
|
|
379
|
+
multiAccount: (accounts: string[], indexerClient: SequenceIndexerGateway | null | undefined, opts?: {
|
|
380
|
+
page?: number;
|
|
381
|
+
pageSize?: number;
|
|
382
|
+
}) => import("@tanstack/react-query").UseQueryOptions<GetTokenBalancesForMultipleAccountsReturn, Error, GetTokenBalancesForMultipleAccountsReturn, readonly unknown[]> & {
|
|
383
|
+
initialData?: GetTokenBalancesForMultipleAccountsReturn | import("@tanstack/react-query").InitialDataFunction<GetTokenBalancesForMultipleAccountsReturn> | undefined;
|
|
384
|
+
} & {
|
|
385
|
+
queryKey: readonly unknown[] & {
|
|
386
|
+
[dataTagSymbol]: GetTokenBalancesForMultipleAccountsReturn;
|
|
387
|
+
[dataTagErrorSymbol]: Error;
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
details: () => readonly ["balances", "detail"];
|
|
391
|
+
withPrices: (account: string | null | undefined, indexerClient: SequenceIndexerGateway | null | undefined, trailsClient: TrailsClient | null | undefined) => import("@tanstack/react-query").UseQueryOptions<GetTokenBalancesWithPriceReturn, Error, GetTokenBalancesWithPriceReturn, readonly unknown[]> & {
|
|
392
|
+
initialData?: GetTokenBalancesWithPriceReturn | import("@tanstack/react-query").InitialDataFunction<GetTokenBalancesWithPriceReturn> | undefined;
|
|
393
|
+
} & {
|
|
394
|
+
queryKey: readonly unknown[] & {
|
|
395
|
+
[dataTagSymbol]: GetTokenBalancesWithPriceReturn;
|
|
396
|
+
[dataTagErrorSymbol]: Error;
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
totalUsd: (account: string | null | undefined, indexerClient: SequenceIndexerGateway | null | undefined, trailsClient: TrailsClient | null | undefined) => import("@tanstack/react-query").UseQueryOptions<GetTokenBalancesWithPriceReturn, Error, number, readonly unknown[]> & {
|
|
400
|
+
initialData?: GetTokenBalancesWithPriceReturn | import("@tanstack/react-query").InitialDataFunction<GetTokenBalancesWithPriceReturn> | undefined;
|
|
401
|
+
} & {
|
|
402
|
+
queryKey: readonly unknown[] & {
|
|
403
|
+
[dataTagSymbol]: GetTokenBalancesWithPriceReturn;
|
|
404
|
+
[dataTagErrorSymbol]: Error;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
sufficientToken: (account: string | null | undefined, token: string | null | undefined, amount: string | null | undefined, chainId: number | null | undefined, indexerClient: SequenceIndexerGateway | null | undefined, trailsClient: TrailsClient | null | undefined) => import("@tanstack/react-query").UseQueryOptions<GetTokenBalancesWithPriceReturn, Error, boolean, readonly unknown[]> & {
|
|
408
|
+
initialData?: GetTokenBalancesWithPriceReturn | import("@tanstack/react-query").InitialDataFunction<GetTokenBalancesWithPriceReturn> | undefined;
|
|
409
|
+
} & {
|
|
410
|
+
queryKey: readonly unknown[] & {
|
|
411
|
+
[dataTagSymbol]: GetTokenBalancesWithPriceReturn;
|
|
412
|
+
[dataTagErrorSymbol]: Error;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
sufficientUsd: (account: string | null | undefined, targetAmountUsd: number | string | null | undefined, indexerClient: SequenceIndexerGateway | null | undefined, trailsClient: TrailsClient | null | undefined) => import("@tanstack/react-query").UseQueryOptions<GetTokenBalancesWithPriceReturn, Error, boolean, readonly unknown[]> & {
|
|
416
|
+
initialData?: GetTokenBalancesWithPriceReturn | import("@tanstack/react-query").InitialDataFunction<GetTokenBalancesWithPriceReturn> | undefined;
|
|
417
|
+
} & {
|
|
418
|
+
queryKey: readonly unknown[] & {
|
|
419
|
+
[dataTagSymbol]: GetTokenBalancesWithPriceReturn;
|
|
420
|
+
[dataTagErrorSymbol]: Error;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
onchain: (token: Token | null | undefined, accountAddress: string | null | undefined, solanaRpcUrls?: readonly string[]) => import("@tanstack/react-query").UseQueryOptions<FetchTokenBalanceOnchainReturn, Error, FetchTokenBalanceOnchainReturn, readonly unknown[]> & {
|
|
424
|
+
initialData?: FetchTokenBalanceOnchainReturn | import("@tanstack/react-query").InitialDataFunction<FetchTokenBalanceOnchainReturn> | undefined;
|
|
425
|
+
} & {
|
|
426
|
+
queryKey: readonly unknown[] & {
|
|
427
|
+
[dataTagSymbol]: FetchTokenBalanceOnchainReturn;
|
|
428
|
+
[dataTagErrorSymbol]: Error;
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
onchainWithPrices: (token: Token | null | undefined, accountAddress: string | null | undefined, trailsClient: TrailsClient | null | undefined, solanaRpcUrls?: readonly string[]) => import("@tanstack/react-query").UseQueryOptions<FetchTokenBalanceOnchainReturn, Error, FetchTokenBalanceOnchainReturn, readonly unknown[]> & {
|
|
432
|
+
initialData?: FetchTokenBalanceOnchainReturn | import("@tanstack/react-query").InitialDataFunction<FetchTokenBalanceOnchainReturn> | undefined;
|
|
433
|
+
} & {
|
|
434
|
+
queryKey: readonly unknown[] & {
|
|
435
|
+
[dataTagSymbol]: FetchTokenBalanceOnchainReturn;
|
|
436
|
+
[dataTagErrorSymbol]: Error;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
solanaFundingTokens: (tokens: Token[], accountAddress: string | null | undefined, trailsClient: TrailsClient | null | undefined, solanaRpcUrls?: readonly string[]) => import("@tanstack/react-query").UseQueryOptions<Token[], Error, Token[], readonly unknown[]> & {
|
|
440
|
+
initialData?: Token[] | import("@tanstack/react-query").InitialDataFunction<Token[]> | undefined;
|
|
441
|
+
} & {
|
|
442
|
+
queryKey: readonly unknown[] & {
|
|
443
|
+
[dataTagSymbol]: Token[];
|
|
444
|
+
[dataTagErrorSymbol]: Error;
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
declare function invalidateTokenBalancesCache(account?: string, queryClient?: QueryClient): void;
|
|
449
|
+
type HasSufficientBalanceParams = {
|
|
450
|
+
account: string;
|
|
451
|
+
token: string;
|
|
452
|
+
amount: string;
|
|
453
|
+
chainId: number;
|
|
454
|
+
indexerGatewayClient: SequenceIndexerGateway;
|
|
455
|
+
trailsClient: TrailsClient;
|
|
456
|
+
};
|
|
457
|
+
declare function getHasSufficientBalanceToken({
|
|
458
|
+
account,
|
|
459
|
+
token,
|
|
460
|
+
amount,
|
|
461
|
+
chainId,
|
|
462
|
+
indexerGatewayClient,
|
|
463
|
+
trailsClient
|
|
464
|
+
}: HasSufficientBalanceParams): Promise<boolean>;
|
|
465
|
+
type GetHasSufficientBalanceUsdParams = {
|
|
466
|
+
account: string;
|
|
467
|
+
targetAmountUsd: number | string;
|
|
468
|
+
indexerGatewayClient: SequenceIndexerGateway;
|
|
469
|
+
trailsClient: TrailsClient;
|
|
470
|
+
};
|
|
471
|
+
declare function getHasSufficientBalanceUsd({
|
|
472
|
+
account,
|
|
473
|
+
targetAmountUsd,
|
|
474
|
+
indexerGatewayClient,
|
|
475
|
+
trailsClient
|
|
476
|
+
}: GetHasSufficientBalanceUsdParams): Promise<boolean>;
|
|
477
|
+
type GetAccountTotalBalanceUsdParams = {
|
|
478
|
+
account: string;
|
|
479
|
+
indexerGatewayClient: SequenceIndexerGateway;
|
|
480
|
+
trailsClient: TrailsClient;
|
|
481
|
+
};
|
|
482
|
+
declare function getAccountTotalBalanceUsd({
|
|
483
|
+
account,
|
|
484
|
+
indexerGatewayClient,
|
|
485
|
+
trailsClient
|
|
486
|
+
}: GetAccountTotalBalanceUsdParams): Promise<number>;
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region src/query/token.fetchers.d.ts
|
|
489
|
+
type TokenListResult = {
|
|
490
|
+
tokens: TokenInfo$1[];
|
|
491
|
+
};
|
|
492
|
+
//#endregion
|
|
493
|
+
//#region src/query/token.queries.d.ts
|
|
494
|
+
type TokenQueryConfig = {
|
|
495
|
+
trailsApiKey: string;
|
|
496
|
+
trailsApiUrl: string;
|
|
497
|
+
sequenceMetadataUrl?: string;
|
|
498
|
+
};
|
|
499
|
+
/**
|
|
500
|
+
* Token query factory.
|
|
501
|
+
*
|
|
502
|
+
* Keep all token list/address/info query keys under one root so callers can
|
|
503
|
+
* share cached data between hooks and imperative paths and invalidate the whole
|
|
504
|
+
* token domain with `tokenQueries.all`.
|
|
505
|
+
*/
|
|
506
|
+
declare const tokenQueries: {
|
|
507
|
+
all: readonly ["tokens"];
|
|
508
|
+
supportedList: (config: TokenQueryConfig | null | undefined) => import("@tanstack/react-query").UseQueryOptions<Token[], Error, Token[], readonly unknown[]> & {
|
|
509
|
+
initialData?: Token[] | import("@tanstack/react-query").InitialDataFunction<Token[]> | undefined;
|
|
510
|
+
} & {
|
|
511
|
+
queryKey: readonly unknown[] & {
|
|
512
|
+
[dataTagSymbol]: Token[];
|
|
513
|
+
[dataTagErrorSymbol]: Error;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
search: (trailsClient: TrailsClient | null | undefined, apiKey: string | null | undefined, params: {
|
|
517
|
+
searchQuery: string;
|
|
518
|
+
chainIds: number[];
|
|
519
|
+
limit?: number;
|
|
520
|
+
}) => import("@tanstack/react-query").UseQueryOptions<TokenListResult, Error, TokenListResult, readonly unknown[]> & {
|
|
521
|
+
initialData?: TokenListResult | import("@tanstack/react-query").InitialDataFunction<TokenListResult> | undefined;
|
|
522
|
+
} & {
|
|
523
|
+
queryKey: readonly unknown[] & {
|
|
524
|
+
[dataTagSymbol]: TokenListResult;
|
|
525
|
+
[dataTagErrorSymbol]: Error;
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
byChain: (trailsClient: TrailsClient | null | undefined, apiKey: string | null | undefined, params: {
|
|
529
|
+
chainId: number | null | undefined;
|
|
530
|
+
limit?: number;
|
|
531
|
+
}) => import("@tanstack/react-query").UseQueryOptions<TokenListResult, Error, TokenListResult, readonly unknown[]> & {
|
|
532
|
+
initialData?: TokenListResult | import("@tanstack/react-query").InitialDataFunction<TokenListResult> | undefined;
|
|
533
|
+
} & {
|
|
534
|
+
queryKey: readonly unknown[] & {
|
|
535
|
+
[dataTagSymbol]: TokenListResult;
|
|
536
|
+
[dataTagErrorSymbol]: Error;
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
address: (chainId: number | null | undefined, tokenSymbol: string | null | undefined, config: TokenQueryConfig | null | undefined) => import("@tanstack/react-query").UseQueryOptions<string | null, Error, string | null, readonly unknown[]> & {
|
|
540
|
+
initialData?: string | import("@tanstack/react-query").InitialDataFunction<string | null> | null | undefined;
|
|
541
|
+
} & {
|
|
542
|
+
queryKey: readonly unknown[] & {
|
|
543
|
+
[dataTagSymbol]: string | null;
|
|
544
|
+
[dataTagErrorSymbol]: Error;
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
info: (chainId: number | null | undefined, contractAddress: string | null | undefined, config: TokenQueryConfig | null | undefined) => import("@tanstack/react-query").UseQueryOptions<Token | null, Error, Token | null, readonly unknown[]> & {
|
|
548
|
+
initialData?: Token | import("@tanstack/react-query").InitialDataFunction<Token | null> | null | undefined;
|
|
549
|
+
} & {
|
|
550
|
+
queryKey: readonly unknown[] & {
|
|
551
|
+
[dataTagSymbol]: Token | null;
|
|
552
|
+
[dataTagErrorSymbol]: Error;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
declare function getTokenInfoCached(chainId: number | null | undefined, contractAddress: string | null | undefined, config: TokenQueryConfig | null | undefined): Promise<Token | null>;
|
|
557
|
+
//#endregion
|
|
558
|
+
//#region src/utils/validation.d.ts
|
|
559
|
+
/**
|
|
560
|
+
* True if value is a string representing a valid numeric value (digits with optional decimal).
|
|
561
|
+
* Empty/null/undefined are considered valid (for form-validation use cases).
|
|
562
|
+
*/
|
|
563
|
+
declare function isValidNumeric(value: number | string | null | undefined): boolean;
|
|
564
|
+
/**
|
|
565
|
+
* True if value is a string representing a valid integer (digits only).
|
|
566
|
+
* Empty/null/undefined are considered valid (for form-validation use cases).
|
|
567
|
+
*/
|
|
568
|
+
declare function isValidInteger(value: number | string | null | undefined): boolean;
|
|
569
|
+
//#endregion
|
|
570
|
+
//#region src/utils/format.d.ts
|
|
571
|
+
/**
|
|
572
|
+
* Formats USD value with user's locale settings (for locale-aware display)
|
|
573
|
+
* Uses browser's locale for number formatting and currency placement.
|
|
574
|
+
* Also converts to the user's display currency via forexRateStore if available.
|
|
575
|
+
*/
|
|
576
|
+
declare function formatUsdAmountLocaleDisplay(value?: number | string): string;
|
|
577
|
+
/**
|
|
578
|
+
* Formats USD value without currency symbol (for formatted fields)
|
|
579
|
+
* Similar to formatUsdAmountDisplay but without the $ sign
|
|
580
|
+
*/
|
|
581
|
+
declare function formatUsdAmountFormatted(value?: number | string): string;
|
|
582
|
+
/**
|
|
583
|
+
* Formats balance fields (raw → formatted → display)
|
|
584
|
+
* Returns all three versions for Token
|
|
585
|
+
*/
|
|
586
|
+
declare function formatBalanceFields(balance: string | bigint, decimals: number): {
|
|
587
|
+
balance: string;
|
|
588
|
+
balanceFormatted: string;
|
|
589
|
+
balanceDisplay: string;
|
|
590
|
+
balanceLocaleDisplay: string;
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* Formats USD value fields (raw → formatted → display)
|
|
594
|
+
* Returns all three versions for Token
|
|
595
|
+
*/
|
|
596
|
+
declare function formatUsdFields(usdValue: number | string | null | undefined): {
|
|
597
|
+
balanceUsd?: number;
|
|
598
|
+
balanceUsdFormatted?: string;
|
|
599
|
+
balanceUsdDisplay?: string;
|
|
600
|
+
balanceUsdLocaleDisplay?: string;
|
|
601
|
+
};
|
|
602
|
+
/**
|
|
603
|
+
* Formats price fields (raw → formatted → display)
|
|
604
|
+
* Returns all three versions for Token
|
|
605
|
+
*/
|
|
606
|
+
declare function formatPriceFields(price: number | string | null | undefined): {
|
|
607
|
+
priceUsd?: number;
|
|
608
|
+
priceUsdFormatted?: string;
|
|
609
|
+
priceUsdDisplay?: string;
|
|
610
|
+
};
|
|
611
|
+
declare function normalizeNumber(number: number | string | null | undefined): number;
|
|
612
|
+
declare function calcAmountUsdPrice({
|
|
613
|
+
amount,
|
|
614
|
+
usdPrice
|
|
615
|
+
}: {
|
|
616
|
+
amount: number | string;
|
|
617
|
+
usdPrice: string | number | null | undefined;
|
|
618
|
+
}): number;
|
|
619
|
+
declare function formatTvl(tvl: number): string;
|
|
620
|
+
//#endregion
|
|
621
|
+
//#region src/utils/address.d.ts
|
|
622
|
+
/**
|
|
623
|
+
* Canonical native-token contract address for a chain.
|
|
624
|
+
* EVM chains use the zero address; Solana uses the SDK SOL sentinel mint.
|
|
625
|
+
*/
|
|
626
|
+
declare function getNativeTokenContractAddress(chainId: number): string;
|
|
627
|
+
/**
|
|
628
|
+
* Check if an address is a native token sentinel for the given chain context.
|
|
629
|
+
*
|
|
630
|
+
* - **EVM** (`chainId` omitted or any non-Solana id): `0x0…0` and legacy `0xEeee…EeEe`.
|
|
631
|
+
* - **Solana** (`chainId === 101`): `111111…1111` and wrapped SOL `So111…1112`.
|
|
632
|
+
* - When `chainId` is omitted, Solana mints are recognized only if
|
|
633
|
+
* {@link isSolanaSupportEnabled} is true (SVM adapter / edge plugin mounted).
|
|
634
|
+
*/
|
|
635
|
+
declare function isNativeToken(address?: string | null, chainId?: number | null): boolean;
|
|
636
|
+
/**
|
|
637
|
+
* Checks if an address is the zero address (0x0000...0000)
|
|
638
|
+
* Use this for recipient/account addresses, not for token addresses.
|
|
639
|
+
* For token addresses, use isNativeToken() instead.
|
|
640
|
+
* @param address - The address to check
|
|
641
|
+
* @returns True if the address is the zero address
|
|
642
|
+
*/
|
|
643
|
+
declare function isZeroAccount(address?: string | null): boolean;
|
|
644
|
+
/** Returns true if the string looks like a Solana base58 public key. */
|
|
645
|
+
declare function isSolanaAddress(address: string): boolean;
|
|
646
|
+
/** EVM 0x or Solana base58 payout address. */
|
|
647
|
+
declare function isSupportedRecipientAddress(address: string): boolean;
|
|
648
|
+
//#endregion
|
|
649
|
+
//#region src/configStore.d.ts
|
|
650
|
+
/** Mark Solana support as enabled for chain-agnostic native-token helpers. */
|
|
651
|
+
declare function setSolanaSupportEnabled(enabled: boolean): void;
|
|
652
|
+
//#endregion
|
|
653
|
+
//#region src/utils/recipientValidation.d.ts
|
|
654
|
+
type RecipientValidationMode = "pay" | "fund" | "swap" | "earn" | "withdraw";
|
|
655
|
+
type RecipientValidationContext = {
|
|
656
|
+
mode: RecipientValidationMode;
|
|
657
|
+
destinationChainId?: number | null;
|
|
658
|
+
originChainId?: number | null;
|
|
659
|
+
};
|
|
660
|
+
declare function isValidRecipientForContext(address: string, ctx: RecipientValidationContext): boolean;
|
|
661
|
+
declare function isValidToAddressProp(address: string, toChainId?: number | string | null): boolean;
|
|
662
|
+
//#endregion
|
|
663
|
+
//#region src/query/fiat.queries.d.ts
|
|
664
|
+
declare const fiatQueries: {
|
|
665
|
+
all: readonly ["fiat"];
|
|
666
|
+
currencies: () => readonly ["fiat", "currencies"];
|
|
667
|
+
currencyList: (trailsClient: TrailsClient | null | undefined) => import("@tanstack/react-query").UseQueryOptions<FiatCurrency[], Error, FiatCurrency[], readonly unknown[]> & {
|
|
668
|
+
initialData?: FiatCurrency[] | import("@tanstack/react-query").InitialDataFunction<FiatCurrency[]> | undefined;
|
|
669
|
+
} & {
|
|
670
|
+
queryKey: readonly unknown[] & {
|
|
671
|
+
[dataTagSymbol]: FiatCurrency[];
|
|
672
|
+
[dataTagErrorSymbol]: Error;
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
exchangeRates: () => readonly ["fiat", "exchangeRate"];
|
|
676
|
+
exchangeRate: (trailsClient: TrailsClient | null | undefined, targetCurrency: string | null | undefined) => import("@tanstack/react-query").UseQueryOptions<ExchangeRate, Error, ExchangeRate, readonly unknown[]> & {
|
|
677
|
+
initialData?: ExchangeRate | import("@tanstack/react-query").InitialDataFunction<ExchangeRate> | undefined;
|
|
678
|
+
} & {
|
|
679
|
+
queryKey: readonly unknown[] & {
|
|
680
|
+
[dataTagSymbol]: ExchangeRate;
|
|
681
|
+
[dataTagErrorSymbol]: Error;
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
//#endregion
|
|
686
|
+
//#region src/query/meld.fetchers.d.ts
|
|
687
|
+
interface MeldCountryDefaults {
|
|
688
|
+
defaultCurrencyCode: string | undefined;
|
|
689
|
+
defaultPaymentMethods: string[];
|
|
690
|
+
}
|
|
691
|
+
interface MeldTransactionHistoryResult {
|
|
692
|
+
transactions: MeldTransaction[];
|
|
693
|
+
hasMore: boolean;
|
|
694
|
+
}
|
|
695
|
+
//#endregion
|
|
696
|
+
//#region src/query/meld.queries.d.ts
|
|
697
|
+
declare const meldQueries: {
|
|
698
|
+
all: readonly ["meld"];
|
|
699
|
+
paymentMethods: () => readonly ["meld", "paymentMethods"];
|
|
700
|
+
paymentMethodList: (onrampClient: TrailsOnramp | null | undefined, fiatCurrency: string | null | undefined) => import("@tanstack/react-query").UseQueryOptions<MeldPaymentMethod[], Error, MeldPaymentMethod[], readonly unknown[]> & {
|
|
701
|
+
initialData?: MeldPaymentMethod[] | import("@tanstack/react-query").InitialDataFunction<MeldPaymentMethod[]> | undefined;
|
|
702
|
+
} & {
|
|
703
|
+
queryKey: readonly unknown[] & {
|
|
704
|
+
[dataTagSymbol]: MeldPaymentMethod[];
|
|
705
|
+
[dataTagErrorSymbol]: Error;
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
cryptoCurrencies: () => readonly ["meld", "cryptoCurrencies"];
|
|
709
|
+
cryptoCurrencyList: (onrampClient: TrailsOnramp | null | undefined, countryCode: string | null | undefined) => import("@tanstack/react-query").UseQueryOptions<MeldCryptoCurrency[], Error, MeldCryptoCurrency[], readonly unknown[]> & {
|
|
710
|
+
initialData?: MeldCryptoCurrency[] | import("@tanstack/react-query").InitialDataFunction<MeldCryptoCurrency[]> | undefined;
|
|
711
|
+
} & {
|
|
712
|
+
queryKey: readonly unknown[] & {
|
|
713
|
+
[dataTagSymbol]: MeldCryptoCurrency[];
|
|
714
|
+
[dataTagErrorSymbol]: Error;
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
serviceProviders: () => readonly ["meld", "serviceProviders"];
|
|
718
|
+
serviceProviderList: (onrampClient: TrailsOnramp | null | undefined, options?: Partial<GetMeldServiceProvidersRequest>) => import("@tanstack/react-query").UseQueryOptions<MeldServiceProvider[], Error, MeldServiceProvider[], readonly unknown[]> & {
|
|
719
|
+
initialData?: MeldServiceProvider[] | import("@tanstack/react-query").InitialDataFunction<MeldServiceProvider[]> | undefined;
|
|
720
|
+
} & {
|
|
721
|
+
queryKey: readonly unknown[] & {
|
|
722
|
+
[dataTagSymbol]: MeldServiceProvider[];
|
|
723
|
+
[dataTagErrorSymbol]: Error;
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
fiatCurrencies: () => readonly ["meld", "fiatCurrencies"];
|
|
727
|
+
fiatCurrencyList: (onrampClient: TrailsOnramp | null | undefined, countryCode: string | null | undefined) => import("@tanstack/react-query").UseQueryOptions<MeldFiatCurrency[], Error, MeldFiatCurrency[], readonly unknown[]> & {
|
|
728
|
+
initialData?: MeldFiatCurrency[] | import("@tanstack/react-query").InitialDataFunction<MeldFiatCurrency[]> | undefined;
|
|
729
|
+
} & {
|
|
730
|
+
queryKey: readonly unknown[] & {
|
|
731
|
+
[dataTagSymbol]: MeldFiatCurrency[];
|
|
732
|
+
[dataTagErrorSymbol]: Error;
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
countryDefaults: () => readonly ["meld", "countryDefaults"];
|
|
736
|
+
countryDefaultsByCode: (onrampClient: TrailsOnramp | null | undefined, countryCode: string | null | undefined) => import("@tanstack/react-query").UseQueryOptions<MeldCountryDefaults, Error, MeldCountryDefaults, readonly unknown[]> & {
|
|
737
|
+
initialData?: MeldCountryDefaults | import("@tanstack/react-query").InitialDataFunction<MeldCountryDefaults> | undefined;
|
|
738
|
+
} & {
|
|
739
|
+
queryKey: readonly unknown[] & {
|
|
740
|
+
[dataTagSymbol]: MeldCountryDefaults;
|
|
741
|
+
[dataTagErrorSymbol]: Error;
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
transactionHistory: () => readonly ["meld", "transactionHistory"];
|
|
745
|
+
transactionHistoryList: (onrampClient: TrailsOnramp | null | undefined, walletAddress: string | null | undefined, limit?: number) => import("@tanstack/react-query").UseQueryOptions<MeldTransactionHistoryResult, Error, MeldTransactionHistoryResult, readonly unknown[]> & {
|
|
746
|
+
initialData?: MeldTransactionHistoryResult | import("@tanstack/react-query").InitialDataFunction<MeldTransactionHistoryResult> | undefined;
|
|
747
|
+
} & {
|
|
748
|
+
queryKey: readonly unknown[] & {
|
|
749
|
+
[dataTagSymbol]: MeldTransactionHistoryResult;
|
|
750
|
+
[dataTagErrorSymbol]: Error;
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
//#endregion
|
|
755
|
+
//#region src/utils/fiat.d.ts
|
|
756
|
+
/**
|
|
757
|
+
* Get formatting info for a fiat currency code.
|
|
758
|
+
*/
|
|
759
|
+
declare function getCurrencyInfo(currencyCode: string): {
|
|
760
|
+
decimals: number;
|
|
761
|
+
symbol: string;
|
|
762
|
+
};
|
|
763
|
+
//#endregion
|
|
764
|
+
//#region src/query/price.queries.d.ts
|
|
765
|
+
declare const priceQueries: {
|
|
766
|
+
all: readonly ["tokenPrices"];
|
|
767
|
+
batch: () => readonly ["tokenPrices", "batch"];
|
|
768
|
+
single: () => readonly ["tokenPrices", "single"];
|
|
769
|
+
byTokens: (tokens: Token$1[], trailsClient: TrailsClient | null | undefined, queryClient?: QueryClient) => import("@tanstack/react-query").UseQueryOptions<TokenPrice[], Error, TokenPrice[], readonly unknown[]> & {
|
|
770
|
+
initialData?: TokenPrice[] | import("@tanstack/react-query").InitialDataFunction<TokenPrice[]> | undefined;
|
|
771
|
+
} & {
|
|
772
|
+
queryKey: readonly unknown[] & {
|
|
773
|
+
[dataTagSymbol]: TokenPrice[];
|
|
774
|
+
[dataTagErrorSymbol]: Error;
|
|
775
|
+
};
|
|
776
|
+
};
|
|
777
|
+
byToken: (token: Token$1 | null | undefined, trailsClient: TrailsClient | null | undefined, queryClient?: QueryClient) => import("@tanstack/react-query").UseQueryOptions<TokenPrice | null, Error, TokenPrice | null, readonly unknown[]> & {
|
|
778
|
+
initialData?: TokenPrice | import("@tanstack/react-query").InitialDataFunction<TokenPrice | null> | null | undefined;
|
|
779
|
+
} & {
|
|
780
|
+
queryKey: readonly unknown[] & {
|
|
781
|
+
[dataTagSymbol]: TokenPrice | null;
|
|
782
|
+
[dataTagErrorSymbol]: Error;
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
declare function invalidateTokenPricesCache(token?: Token$1, qc?: QueryClient): Promise<void>;
|
|
787
|
+
declare function getTokenPrice(trailsClient: TrailsClient, token: Token$1): Promise<TokenPrice | null>;
|
|
788
|
+
declare function getTokenPrices(trailsClient: TrailsClient, tokens: Token$1[]): Promise<TokenPrice[]>;
|
|
789
|
+
//#endregion
|
|
790
|
+
//#region src/intentProtocolApi.d.ts
|
|
791
|
+
type IntentProtocolApiContext = {
|
|
792
|
+
supported: IntentProtocolVersion[];
|
|
793
|
+
apiDefault: IntentProtocolVersion;
|
|
794
|
+
};
|
|
795
|
+
//#endregion
|
|
796
|
+
//#region src/query/intentProtocol.queries.d.ts
|
|
797
|
+
declare const intentProtocolQueries: {
|
|
798
|
+
all: readonly ["intentProtocol"];
|
|
799
|
+
apiContext: (client: TrailsApi) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<IntentProtocolApiContext, Error, IntentProtocolApiContext, readonly unknown[]>, "queryFn"> & {
|
|
800
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<IntentProtocolApiContext, readonly unknown[], never> | undefined;
|
|
801
|
+
} & {
|
|
802
|
+
queryKey: readonly unknown[] & {
|
|
803
|
+
[dataTagSymbol]: IntentProtocolApiContext;
|
|
804
|
+
[dataTagErrorSymbol]: Error;
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
/**
|
|
808
|
+
* Cached default protocol for a Trails client + optional global override (same
|
|
809
|
+
* resolution as {@link resolveDefaultIntentProtocol} without an override).
|
|
810
|
+
*/
|
|
811
|
+
defaultIntentProtocol: (opts: {
|
|
812
|
+
client: TrailsApi;
|
|
813
|
+
override?: IntentProtocolVersion;
|
|
814
|
+
global?: IntentProtocolVersion;
|
|
815
|
+
}) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<IntentProtocolVersion, Error, IntentProtocolVersion, readonly unknown[]>, "queryFn"> & {
|
|
816
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<IntentProtocolVersion, readonly unknown[], never> | undefined;
|
|
817
|
+
} & {
|
|
818
|
+
queryKey: readonly unknown[] & {
|
|
819
|
+
[dataTagSymbol]: IntentProtocolVersion;
|
|
820
|
+
[dataTagErrorSymbol]: Error;
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
//#endregion
|
|
825
|
+
//#region src/placeholder.d.ts
|
|
826
|
+
/**
|
|
827
|
+
* Sentinel uint256 used internally by the SDK to mark a calldata slot that
|
|
828
|
+
* should be hydrated with the wallet's token balance at runtime.
|
|
829
|
+
*
|
|
830
|
+
* **Internal SDK use only.** Do not pass this value directly in contract
|
|
831
|
+
* calldata - it is not a valid amount and will cause transactions to revert.
|
|
832
|
+
* Instead, pass it as the `amount` / `amountIn` field when building calls via
|
|
833
|
+
* SDK helpers (e.g. `buildUniswapV3ExactInputCall`). `encodeMulticallHydrateExecute`
|
|
834
|
+
* will detect this sentinel and replace it with the correct `erc20Balance / self`
|
|
835
|
+
* hydration entry before the calldata is submitted on-chain.
|
|
836
|
+
*
|
|
837
|
+
* Hash-derived from
|
|
838
|
+
* `keccak256(utf8("sequence.trails.hydrate.amount.sentinel.v1"))`.
|
|
839
|
+
*/
|
|
840
|
+
declare const TRAILS_HYDRATE_PLACEHOLDER_AMOUNT = 114316045351081986197366228715807272115562181347258027827511447451103061843027n;
|
|
841
|
+
/**
|
|
842
|
+
* should be hydrated with `address(this)` (the intent wallet) at runtime.
|
|
843
|
+
*
|
|
844
|
+
* **Internal SDK use only.** Do not submit this address directly in contract
|
|
845
|
+
* calldata - it is not a real address and will cause transactions to revert.
|
|
846
|
+
* Pass it as the `recipient` (or any address field) when building calls via
|
|
847
|
+
* SDK helpers. `encodeMulticallHydrateExecute` will detect it and replace the
|
|
848
|
+
* slot with an `address / self` hydration entry before on-chain submission.
|
|
849
|
+
*
|
|
850
|
+
* @example
|
|
851
|
+
* ```ts
|
|
852
|
+
* import { TRAILS_HYDRATE_SELF_ADDRESS } from "0xtrails"
|
|
853
|
+
*
|
|
854
|
+
* swapExactOutputSingle({
|
|
855
|
+
* ...
|
|
856
|
+
* recipient: TRAILS_HYDRATE_SELF_ADDRESS,
|
|
857
|
+
* })
|
|
858
|
+
* ```
|
|
859
|
+
*
|
|
860
|
+
* Hash-derived from:
|
|
861
|
+
* `uint160(uint256(keccak256(utf8("sequence.trails.hydrate.address.sentinel.v1"))))`
|
|
862
|
+
* = `0xd80d3a37a85094663c36c062e5ef689f2bf54fca`.
|
|
863
|
+
*/
|
|
864
|
+
declare const TRAILS_HYDRATE_SELF_ADDRESS: "0xd80d3a37a85094663c36c062e5ef689f2bf54fca";
|
|
865
|
+
/**
|
|
866
|
+
* Check if calldata contains the hydrate placeholder amount
|
|
867
|
+
* ({@link TRAILS_HYDRATE_PLACEHOLDER_AMOUNT}). If no placeholder is found, the
|
|
868
|
+
* calldata has a real amount baked in.
|
|
869
|
+
*
|
|
870
|
+
* @param calldata - The calldata to check
|
|
871
|
+
* @returns true if calldata contains the placeholder, false otherwise
|
|
872
|
+
*/
|
|
873
|
+
declare function calldataHasPlaceholder(calldata?: string): boolean;
|
|
874
|
+
//#endregion
|
|
875
|
+
//#region src/logger/index.d.ts
|
|
876
|
+
declare function getMinLogLevel(): number;
|
|
877
|
+
declare const logger: {
|
|
878
|
+
readonly _enabled: boolean;
|
|
879
|
+
console: {
|
|
880
|
+
log: (...args: any[]) => void;
|
|
881
|
+
error: (...args: any[]) => void;
|
|
882
|
+
warn: (...args: any[]) => void;
|
|
883
|
+
info: (...args: any[]) => void;
|
|
884
|
+
debug: (...args: any[]) => void;
|
|
885
|
+
trace: (...args: any[]) => void;
|
|
886
|
+
time: (...args: any[]) => void;
|
|
887
|
+
timeEnd: (...args: any[]) => void;
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
//#endregion
|
|
891
|
+
//#region src/onramp/MeshConnectFlow.d.ts
|
|
892
|
+
interface SelectedMeshExchange {
|
|
893
|
+
integrationId: string;
|
|
894
|
+
exchangeKey: string;
|
|
895
|
+
exchangeName: string;
|
|
896
|
+
}
|
|
897
|
+
interface MeshConnectFlowProps {
|
|
898
|
+
onBack?: () => void;
|
|
899
|
+
onComplete?: (transferData: unknown) => void;
|
|
900
|
+
onError?: (error: unknown) => void;
|
|
901
|
+
authOnly?: boolean;
|
|
902
|
+
accessTokens?: Array<{
|
|
903
|
+
accountId: string;
|
|
904
|
+
accountName: string;
|
|
905
|
+
accessToken: string;
|
|
906
|
+
brokerType: string;
|
|
907
|
+
brokerName: string;
|
|
908
|
+
}>;
|
|
909
|
+
toTokenSymbol?: string;
|
|
910
|
+
toTokenAmount?: string;
|
|
911
|
+
toChainId?: number;
|
|
912
|
+
toRecipientAddress?: string;
|
|
913
|
+
toAmountUsd?: number;
|
|
914
|
+
selectedExchange?: SelectedMeshExchange | null;
|
|
915
|
+
}
|
|
916
|
+
declare const MeshConnectFlow: React.FC<MeshConnectFlowProps>;
|
|
917
|
+
//#endregion
|
|
918
|
+
//#region src/onramp/MeshConnectIframe.d.ts
|
|
919
|
+
interface MeshConnectProps {
|
|
920
|
+
onBack: () => void;
|
|
921
|
+
onError?: (error: unknown) => void;
|
|
922
|
+
authOnly?: boolean;
|
|
923
|
+
accessTokens?: Array<{
|
|
924
|
+
accountId: string;
|
|
925
|
+
accountName: string;
|
|
926
|
+
accessToken: string;
|
|
927
|
+
brokerType: string;
|
|
928
|
+
brokerName: string;
|
|
929
|
+
}>;
|
|
930
|
+
toTokenSymbol?: string;
|
|
931
|
+
onComplete?: (transferData: any) => void;
|
|
932
|
+
toTokenAmount?: string;
|
|
933
|
+
toChainId?: number;
|
|
934
|
+
toRecipientAddress?: string;
|
|
935
|
+
integrationId?: string;
|
|
936
|
+
exchangeName?: string;
|
|
937
|
+
}
|
|
938
|
+
declare const MeshConnectIframe: React.FC<MeshConnectProps>;
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region src/onramp/SendFromExchangeButton.d.ts
|
|
941
|
+
interface SendFromExchangeButtonProps {
|
|
942
|
+
/**
|
|
943
|
+
* Callback to navigate to the onramp screen.
|
|
944
|
+
* The onramp screen will show the exchange list.
|
|
945
|
+
*/
|
|
946
|
+
onNavigateToOnramp?: () => void;
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* Button component for "Send from Exchange" option in FundMethods.
|
|
950
|
+
* Only renders if Mesh onramp is configured and exchanges are configured.
|
|
951
|
+
* Shows an error message if no exchanges are configured.
|
|
952
|
+
* When clicked, navigates directly to the onramp screen which shows the exchange list.
|
|
953
|
+
*/
|
|
954
|
+
declare const SendFromExchangeButton: React.FC<SendFromExchangeButtonProps>;
|
|
955
|
+
//#endregion
|
|
956
|
+
//#region src/meld/components/SimpleHeader.d.ts
|
|
957
|
+
interface SimpleHeaderProps {
|
|
958
|
+
onBack?: () => void;
|
|
959
|
+
title?: string | React.ReactNode;
|
|
960
|
+
className?: string;
|
|
961
|
+
}
|
|
962
|
+
declare const SimpleHeader: React.FC<SimpleHeaderProps>;
|
|
963
|
+
//#endregion
|
|
964
|
+
//#region src/onramp/trailsOnramp.d.ts
|
|
965
|
+
interface OnrampWidgetHandlers {
|
|
966
|
+
setCurrentScreen: (screen: string) => void;
|
|
967
|
+
onComplete?: (transferData: unknown) => void;
|
|
968
|
+
onError?: (error: unknown) => void;
|
|
969
|
+
onBack?: () => void;
|
|
970
|
+
authOnly?: boolean;
|
|
971
|
+
accessTokens?: Array<{
|
|
972
|
+
accountId: string;
|
|
973
|
+
accountName: string;
|
|
974
|
+
accessToken: string;
|
|
975
|
+
brokerType: string;
|
|
976
|
+
brokerName: string;
|
|
977
|
+
}>;
|
|
978
|
+
toTokenSymbol?: string;
|
|
979
|
+
toTokenAmount?: string;
|
|
980
|
+
toChainId?: number;
|
|
981
|
+
toRecipientAddress?: string;
|
|
982
|
+
toAmountUsd?: number;
|
|
983
|
+
selectedExchange?: SelectedMeshExchange;
|
|
984
|
+
apiKey?: string;
|
|
985
|
+
hostname?: string;
|
|
986
|
+
}
|
|
987
|
+
type OnrampFactory = (handlers: OnrampWidgetHandlers) => React.ReactElement;
|
|
988
|
+
declare function normalizeTrailsOnrampConfig(config?: TrailsOnRampConfig): TrailsOnRampConfig | undefined;
|
|
989
|
+
declare function getTrailsOnrampConfig(factory?: OnrampFactory): TrailsOnRampConfig | undefined;
|
|
990
|
+
declare function trailsOnramp(options: {
|
|
991
|
+
config?: TrailsOnRampConfig;
|
|
992
|
+
}): OnrampFactory;
|
|
993
|
+
//#endregion
|
|
994
|
+
//#region src/onramp/meshconnect.d.ts
|
|
995
|
+
interface CreateMeshLinkTokenOptions {
|
|
996
|
+
authOnly?: boolean;
|
|
997
|
+
userId?: string;
|
|
998
|
+
address?: string;
|
|
999
|
+
symbol?: string;
|
|
1000
|
+
amount?: string;
|
|
1001
|
+
destinationChainId?: number | string;
|
|
1002
|
+
integrationId?: string;
|
|
1003
|
+
exchangeType?: string;
|
|
1004
|
+
transactionId?: string;
|
|
1005
|
+
restrictMultipleAccounts?: boolean;
|
|
1006
|
+
}
|
|
1007
|
+
declare function getMeshIntegrations(config?: TrailsOnRampConfig): Promise<MeshIntegration[]>;
|
|
1008
|
+
declare function getMeshIntegrationId(exchangeType: string, config?: TrailsOnRampConfig): Promise<string | undefined>;
|
|
1009
|
+
declare function getCoinbaseIntegrationId(config?: TrailsOnRampConfig): Promise<string | undefined>;
|
|
1010
|
+
declare function getBinanceIntegrationId(config?: TrailsOnRampConfig): Promise<string | undefined>;
|
|
1011
|
+
declare function getBitfinexIntegrationId(config?: TrailsOnRampConfig): Promise<string | undefined>;
|
|
1012
|
+
declare function createMeshLinkToken(options: CreateMeshLinkTokenOptions, config?: TrailsOnRampConfig): Promise<CreateMeshLinkTokenResponse>;
|
|
1013
|
+
declare function getMeshSupportedTokens(request: Omit<GetMeshSupportedTokensRequest, "environment">, config?: TrailsOnRampConfig): Promise<MeshSupportedToken[]>;
|
|
1014
|
+
//#endregion
|
|
1015
|
+
//#region src/committedIntentStore.d.ts
|
|
1016
|
+
declare function storeCommittedIntent(intent: Intent$1): void;
|
|
1017
|
+
declare function getCommittedIntents(ownerAddress: string): Intent$1[];
|
|
1018
|
+
declare function removeCommittedIntent(intentId: string, ownerAddress: string): void;
|
|
1019
|
+
//#endregion
|
|
1020
|
+
//#region src/index.d.ts
|
|
1021
|
+
type WalletConnector = import("@0xtrails/wallet").WalletConnectorLike;
|
|
1022
|
+
//#endregion
|
|
1023
|
+
export { type ActionAmount, type ActionDirection, type ActionItem, type AppMetadata, type AssertActionItem, type AssertERC20AllowanceItem, type AssertERC20BalanceItem, type AssertNativeBalanceItem, type AssertNotExpiredItem, type BuildApproveAndCallParams, type BuildCallParams, type BuildEdgeDestinationConfigOptions, type BuildRefundTransactionWithSignatureParams, type Call, type CallWithData, type Chain, type ChainId, type ChainIdentifier, type ChainName, type CreateEvmAdapterOptions, CreateMeshLinkTokenOptions, type CryptoPaymentMethod, type CustomActionItem, type DepositActionItem, type DestinationCallsInput, type DestinationConfig, DestinationEncodingError, type DestinationEncodingErrorCode, type DestinationEncodingStrategy, type DevConfig, type DynamicAmount, EDGE_RAIL, Earn, type EarnActionArgs, type EarnBalance, type EarnBalanceError, type EarnBalanceQuery, type EarnBalances, type EarnMarket, type EarnMarketArgumentField, type EarnMarketArguments, type EarnMarketMetadata, type EarnMarketRewardRate, type EarnMarketRewardRateComponent, type EarnMarketStatistics, type EarnMarketStatus, type EarnMarketToken, type EarnProps, type EarnType, type EdgeDepositParams, type EdgeDestinationConfig, type EdgeOriginConfig, type EdgePlugin, type EdgeRailId, type EdgeWalletConfigs, type Eip1193ProviderLike, type EncodeDestinationForIntentProtocolParams, type EncodeDestinationForIntentProtocolResult, type EncodedDestinationCalls, type Erc20Utils, type EvmAdapterOptions, type EvmChainConfig, type EvmWalletDescriptor, type ExchangePaymentMethod, type ExecuteIntentRequest, type ExecuteIntentResponse, type FeePercent, type FiatPaymentMethod, Fund, type FundMethod, type FundMethodListOption, type FundProps, type GetAccountTransactionHistoryParams, type GetEarnBalancesParams, type GetEarnBalancesResult, type GetIntentReceiptRequest, type GetIntentReceiptResponse, type GetMarketsParams, type GetMarketsResult, type GetProvidersParams, type GetProvidersResult, type HydrateTypeData, InsufficientBalanceError, type Intent, type IntentReceipt, type IntentReceiptPollerCallbacks, type IntentReceiptPollerOptions, type IntentReceiptStatus, type IntentStatus, type IntentTransaction, type IntentTransactionHistoryResponse, type IntentTransactionReceipt, type LendActionItem, MIN_REFETCH_INTERVAL, type MeshConfig, MeshConnectFlow, type MeshConnectFlowProps, MeshConnectIframe, type MeshConnectProps, type ModalSelectionParams, type Mode, type NativeTokenBalance, type OnDestinationTransactionFound, type OnOriginTransactionFound, type OnReceiptUpdate, type OnrampFactory, type OnrampWidgetHandlers, type OptionalDestinationConfig, type OriginCallParams, PUBLIC_SOLANA_MAINNET_JSON_RPC, Pay, type PayProps, Payload, type PaymentMethod, type Provider, type ProviderId, type ProviderType, type Quote, QuoteError, type QuoteErrorCode, type QuoteIntentRequest, type ResolveActionsToCallsParams, type ResolvedTokenInput, RouteProvider, type RuntimeWalletClientConnection, SDK_VERSION, SEQUENCE_EMBEDDED_WALLET_ID, SOLANA_EDGE_CHAIN_ID, SOLANA_MAINNET_CHAIN_ID, SOLANA_NATIVE_PRICE_PROXY, SOLANA_PYUSD_MINT, SOLANA_SOL_MINT, SOLANA_USDC_MINT, SOLANA_USDT_MINT, type SelectedMeshExchange, SendFromExchangeButton, type SendFromExchangeButtonProps, type SequenceEnv, type SharedWidgetProps, SimpleHeader, type SimpleHeaderProps, type SolanaEdgeWalletConfig, type SolanaWalletContextValue, type SupportedChainId, type SupportedChainName, type SupportedTokenSymbol, type SushiSwapV3ChainScoped, type SushiSwapV3GetPoolParams, type SushiSwapV3QuoteSwapParams, type SushiSwapV3QuoteSwapResponse, type SushiSwapV3QuoteSwapType, type SushiSwapV3SwapExactInputSingleParams, type SushiSwapV3SwapExactOutputSingleParams, type SvmWalletAdapter, Swap, type SwapActionItem, type SwapProps, type SwapProvider, type SwapReturn, SwapType, TRAILS_HYDRATE_PLACEHOLDER_AMOUNT, TRAILS_HYDRATE_SELF_ADDRESS, type Token, type TokenAccessor, type TokenBalance, type TokenInfo, type TokenOrAddress, TradeType, type TrailsAdapterConfig, type TrailsAdapterEntry, type TrailsAdapterManagedBy, type TrailsAdapterProviderProps, TrailsApiClientError, TrailsClient, type TrailsConfig, TrailsConnectDialog, type TrailsConnectDialogProps, TrailsConnectWallet, type TrailsConnectWalletInitialPendingWallet, type TrailsConnectWalletProps, TrailsError, type TrailsErrorBoundary, type TrailsErrorCode, type TrailsFee, TrailsHookModal, type TrailsModalContextType, TrailsModalProvider, type TrailsOnRampConfig, TrailsOnRampProvider, type TrailsOnRampProviderProps, TrailsOnramp, TrailsProvider, type TrailsProviderConfig, type TrailsSendTransactionVariables, type TrailsSequenceSupport, type TrailsSequenceSupportConfig, type TrailsWaasFeeOptionConfirmation, type TrailsWaasFeeOptionsControllerProps, type TrailsWaasFeeOptionsControllerValue, type TrailsWalletClient, type TrailsWalletConnection, TrailsWidget, type TrailsWidgetProps, type TrailsWidgetRef, type TransactionHistoryResponse, type TransactionState, type TransactionStatus, UnifiedWalletProvider, type UniswapV3ChainScoped, type UniswapV3GetPoolParams, type UniswapV3QuoteSwapParams, type UniswapV3QuoteSwapResponse, type UniswapV3QuoteSwapType, type UniswapV3SwapExactInputSingleParams, type UniswapV3SwapExactOutputSingleParams, type UseAccountTransactionHistoryParams, type UseAccountTransactionHistoryReturn, type UseEarnBalancesParams, type UseEarnBalancesReturn, type UseEarnMarketsParams, type UseEarnMarketsReturn, type UseEarnProvidersParams, type UseEarnProvidersReturn, type UseGetIntentParams, type UseGetIntentReturn, type UseHasSufficientBalanceTokenParams, type UseHasSufficientBalanceUsdParams, type UseIntentRecoverParams, type UseIntentRecoverReturn, type UseIntentRecoverWithAddressParams, type UseIntentRecoverWithAddressReturn, type UseIntentTransactionHistoryParams, type UseIntentTransactionHistoryReturn, type UseKeymachineIntentRecoveryParams, type UseKeymachineIntentRecoveryReturn, type UseOfflineIntentRecoveryParams, type UseOfflineIntentRecoveryReturn, type UseQuoteProps, type UseQuoteReturn, type UseResolveActionsProps, type UseResolveActionsReturn, type UseSendTransactionParameters, type UseSendTransactionReturn, type UseTrailsSendTransactionParameters, type UseTrailsSendTransactionReturnType, type UseWidgetModalReturn, UserRejectionError, type WaitIntentReceiptRequest, type WaitIntentReceiptResponse, WalletConnector, type WalletConnectorLike, type WalletDescriptor, type WalletRuntimeConnector, WidgetFundMethod, Withdraw, type WithdrawProps, type WrappedTrailsAdapterEntry, abortControllerRegistry, abortIntent, assertCondition, attemptSwitchChain, balanceQueries, buildApproveAndCall, buildCall, buildEdgeInnerQuoteIntentRequest, buildEdgeQuoteRequest, buildEdgeQuoteRequestFromDestinationConfig, buildEdgeQuoteRequestFromOriginConfig, buildErc20Approve, buildQuoteIntentEdgeRequest, buildRefundTransactionWithSignature, calcAmountUsdPrice, calldataHasPlaceholder, chainQueries, checkProviderHealth, checkSufficientToken, commitIntent, convertApiTokenInfoToToken, createHydratePayload, createMeshLinkToken, createModalController, createSolanaEdgeDestinationConfig, createSolanaEdgeOriginConfig, custom, deposit, dynamic, encodeDestinationCalls, encodeDestinationForIntentProtocol, encodeMulticallHydrateExecute, erc20Utils, evmAdapter, fetchCountryCode, fetchIntentTokenBalancesViaRpc, fiatQueries, flattenDestinationCalls, formatBalanceFields, formatPriceFields, formatTvl, formatUsdAmountFormatted, formatUsdAmountLocaleDisplay, formatUsdFields, geoQueries, getAccountTotalBalanceUsd, getAccountTransactionHistory, getActiveMeshMode, getAllChains, getAmountWithSlippage, getBinanceIntegrationId, getBitfinexIntegrationId, getChainInfo, getCoinbaseIntegrationId, getCommittedIntents, getCommonTokenImageUrl, getCurrencyInfo, getERC20TransferData, getEarnBalances, getEarnMarkets, getEarnProviders, getEdgeOriginConfig, getEdgeSolanaRpcUrl, getEdgeSolanaRpcUrls, getErrorBoundary, getErrorCode, getExplorerUrl, getFullErrorMessage, getHasSufficientBalanceToken, getHasSufficientBalanceUsd, getIntent, getIsApiError, getIsBalanceTooLowError, getIsContract, getIsInsufficientLiquidityError, getIsNoAvailableQuoteError, getIsQuoteFailedError, getIsQuoteInputError, getIsQuoteTokenError, getIsRateLimitedError, getIsRequiredAmountNotMetError, getIsUserRejectionError, getIsWalletAlreadyConnectedError, getMeshIntegrationId, getMeshIntegrations, getMeshSupportedTokens, getMinLogLevel, getNativeTokenContractAddress, getOnrampClient, getPrettifiedErrorMessage, getPublicClient, getRpcUrl, getSequenceMetadataTokenImageUrl, getSolanaToken, getSolanaTokenPriceUsd, getSolanaTokens, getSupportedChains, getSupportedTokens, getTokenAddress, getTokenInfo, getTokenInfoCached, getTokenPrice, getTokenPrices, getTrailsClient, getTrailsOnrampConfig, getTxTimeDiff, getVersion, getWalletIconUrl, getWalletName, getWalletRegistry, intentProtocolQueries, invalidateTokenBalancesCache, invalidateTokenPricesCache, isDynamicAmount, isMeshEnabled, isNativeToken, isSelfAddress, isSequenceEmbeddedWalletId, isSequenceWallet, isSequenceWalletById, isSmartContractWallet, isSolanaAddress, isSolanaChainId, isSolanaEdgeDestinationConfig, isSolanaEdgeOriginConfig, isSolanaStablecoinMint, isSupportedRecipientAddress, isTrailsApiClientError, isTrailsError, isTrailsWalletClient, isValidInteger, isValidNumeric, isValidRecipientForContext, isValidToAddressProp, isWalletConnectConnector, isZeroAccount, lend, logger, meldQueries, normalizeNumber, normalizeTrailsOnrampConfig, pollIntentReceipt, prepareSend, priceQueries, quoteIntent, quoteIntentEdge, removeCommittedIntent, resolveActionsToCalls, resolveChainId, resolveChainName, resolveSolanaMainnetJsonRpcUrl, resolveSolanaMainnetJsonRpcUrls, resolveTokenAddress, resolveTokenInput, self, sendOriginTransaction, setSolanaSupportEnabled, signPayload, signWithTimeout, storeCommittedIntent, sushiswapV3, swap, toEdgeWalletConfigs, tokenQueries, topShownWallets, trailsOnramp, uniswapV3, useAccountTotalBalanceUsd, useAccountTransactionHistory, useCommitIntent, useCountryCode, useCountryList, useEarnBalances, useEarnMarkets, useEarnProviders, useEdgePluginForChain, useEdgePluginForDestinationChain, useEdgePlugins, useExchangeRate, useExecuteIntent, useFiatCurrencyList, useGetIntent, useGetSequenceMetadataTokenImageUrl, useGetTokenImageUrl, useHasSufficientBalanceToken, useHasSufficientBalanceUsd, useIndexerGatewayClient, useIntentReceiptMonitor, useIntentRecover, useIntentRecoverWithAddress, useIntentTransactionHistory, useKeymachineIntentRecovery, useMeldPaymentMethods, useMeldServiceProviders, useOfflineIntentRecovery, useOnrampClient, useOptionalSolanaWalletContext, useOptionalSvmWalletContext, usePublicClient, usePublicClientGetter, useQuote, useResolveActions, useSendTransaction, useSupportedChains, useSupportedTokens, useTokenAddress, useTokenBalances, useTokenBalancesForMultipleAccounts, useTokenInfo, useTokenList, useTokenPrice, useTokenPrices, useTrails, useTrailsClient, useTrailsModal, useTrailsOnRamp, useTrailsSendTransaction, useWalletSession, useWidgetModal, wrapWalletClient };
|