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/analytics.js
DELETED
|
@@ -1,881 +0,0 @@
|
|
|
1
|
-
import y from "./package.js";
|
|
2
|
-
import { _defineProperty as p } from "./_virtual/_@oxc-project_runtime@0.126.0/helpers/defineProperty.js";
|
|
3
|
-
import { getQueryParam as h } from "./queryParamsCore.js";
|
|
4
|
-
import { getEnvVar as N } from "./configStore.js";
|
|
5
|
-
import { logger as a } from "./logger/index.js";
|
|
6
|
-
import { normalizeAddress as C } from "./utils/address.js";
|
|
7
|
-
import { DATABEAT_KEY as f, DATABEAT_SERVER as P } from "./constants.js";
|
|
8
|
-
import { isNonNegativeNumber as _, isValidNumber as O } from "./utils/validation.js";
|
|
9
|
-
import { getUserLocale as v } from "./localeUtils.js";
|
|
10
|
-
import { Databeat as D } from "@databeat/tracker";
|
|
11
|
-
import { Bytes as S, Hash as U } from "ox";
|
|
12
|
-
var l = null;
|
|
13
|
-
function w() {
|
|
14
|
-
return y.version || "dev";
|
|
15
|
-
}
|
|
16
|
-
function T() {
|
|
17
|
-
l = null;
|
|
18
|
-
try {
|
|
19
|
-
localStorage.removeItem("checkoutId");
|
|
20
|
-
} catch (e) {
|
|
21
|
-
a.console.error("Error removing checkout id:", e);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function b() {
|
|
25
|
-
try {
|
|
26
|
-
return localStorage.getItem("checkoutUserId");
|
|
27
|
-
} catch (e) {
|
|
28
|
-
a.console.error("Error getting checkout user id:", e);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function M(e) {
|
|
32
|
-
if (e) try {
|
|
33
|
-
localStorage.setItem("checkoutUserId", C(e));
|
|
34
|
-
} catch (t) {
|
|
35
|
-
a.console.error("Error setting checkout user id:", t);
|
|
36
|
-
}
|
|
37
|
-
return L(), i();
|
|
38
|
-
}
|
|
39
|
-
function i() {
|
|
40
|
-
if (l) return l;
|
|
41
|
-
try {
|
|
42
|
-
l = localStorage.getItem("checkoutId");
|
|
43
|
-
} catch (e) {
|
|
44
|
-
a.console.error("Error getting checkout id:", e);
|
|
45
|
-
}
|
|
46
|
-
return l;
|
|
47
|
-
}
|
|
48
|
-
function L() {
|
|
49
|
-
T(), l = F();
|
|
50
|
-
try {
|
|
51
|
-
localStorage.setItem("checkoutId", l);
|
|
52
|
-
} catch (e) {
|
|
53
|
-
a.console.error("Error setting checkout id:", e);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
function F() {
|
|
57
|
-
try {
|
|
58
|
-
return crypto.randomUUID();
|
|
59
|
-
} catch (e) {
|
|
60
|
-
return a.console.error("Error generating checkout id:", e), Date.now().toString();
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function E(e, t) {
|
|
64
|
-
if (!e) return "";
|
|
65
|
-
let n = C(e);
|
|
66
|
-
t?.userAgentSalt && typeof navigator < "u" && (n = `${n}:${navigator.userAgent}`), t?.extraSalt && t.extraSalt.length > 0 && (n = `${n}:${t.extraSalt}`);
|
|
67
|
-
const o = S.fromString(n), r = U.sha256(o);
|
|
68
|
-
return S.toHex(r).replace("0x", "").substring(0, 50);
|
|
69
|
-
}
|
|
70
|
-
function c(e) {
|
|
71
|
-
return E(E(e), {
|
|
72
|
-
userAgentSalt: !1,
|
|
73
|
-
extraSalt: "s3qs4lt"
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
typeof window < "u" && (window._pseudonymize = E);
|
|
77
|
-
var s = {
|
|
78
|
-
PAGEVIEW: "PAGEVIEW",
|
|
79
|
-
WIDGET_SCREEN: "WIDGET_SCREEN",
|
|
80
|
-
PAYMENT_STARTED: "PAYMENT_STARTED",
|
|
81
|
-
PAYMENT_COMPLETED: "PAYMENT_COMPLETED",
|
|
82
|
-
PAYMENT_ERROR: "PAYMENT_ERROR",
|
|
83
|
-
WALLET_CONNECTED: "WALLET_CONNECTED",
|
|
84
|
-
WALLET_DISCONNECTED: "WALLET_DISCONNECTED",
|
|
85
|
-
INTENT_QUOTE_REQUESTED: "INTENT_QUOTE_REQUESTED",
|
|
86
|
-
INTENT_QUOTE_RECEIVED: "INTENT_QUOTE_RECEIVED",
|
|
87
|
-
INTENT_QUOTE_ERROR: "INTENT_QUOTE_ERROR",
|
|
88
|
-
INTENT_COMMIT_STARTED: "INTENT_COMMIT_STARTED",
|
|
89
|
-
INTENT_COMMIT_COMPLETED: "INTENT_COMMIT_COMPLETED",
|
|
90
|
-
INTENT_COMMIT_ERROR: "INTENT_COMMIT_ERROR",
|
|
91
|
-
TRANSACTION_STARTED: "TRANSACTION_STARTED",
|
|
92
|
-
TRANSACTION_SIGNED: "TRANSACTION_SIGNED",
|
|
93
|
-
TRANSACTION_SUBMITTED: "TRANSACTION_SUBMITTED",
|
|
94
|
-
TRANSACTION_CONFIRMED: "TRANSACTION_CONFIRMED",
|
|
95
|
-
TRANSACTION_ERROR: "TRANSACTION_ERROR",
|
|
96
|
-
RELAYER_CALL_STARTED: "RELAYER_CALL_STARTED",
|
|
97
|
-
RELAYER_CALL_COMPLETED: "RELAYER_CALL_COMPLETED",
|
|
98
|
-
RELAYER_CALL_ERROR: "RELAYER_CALL_ERROR",
|
|
99
|
-
ONRAMP_QUOTE_REQUESTED: "ONRAMP_QUOTE_REQUESTED",
|
|
100
|
-
ONRAMP_QUOTE_RECEIVED: "ONRAMP_QUOTE_RECEIVED",
|
|
101
|
-
ONRAMP_QUOTE_ERROR: "ONRAMP_QUOTE_ERROR",
|
|
102
|
-
ONRAMP_WIDGET_SESSION: "ONRAMP_WIDGET_SESSION",
|
|
103
|
-
ONRAMP_PAYMENT_COMPLETED: "ONRAMP_PAYMENT_COMPLETED",
|
|
104
|
-
WIDGET_CLICK: "WIDGET_CLICK"
|
|
105
|
-
};
|
|
106
|
-
function Q(e) {
|
|
107
|
-
const t = {};
|
|
108
|
-
for (const [n, o] of Object.entries(e))
|
|
109
|
-
o != null && (t[n] = typeof o == "string" ? o : String(o));
|
|
110
|
-
return t;
|
|
111
|
-
}
|
|
112
|
-
var R = class {
|
|
113
|
-
constructor(e) {
|
|
114
|
-
p(this, "sequenceProjectAccessKey", void 0), this.sequenceProjectAccessKey = e;
|
|
115
|
-
}
|
|
116
|
-
updateProjectAccessKey(e) {
|
|
117
|
-
this.sequenceProjectAccessKey = e;
|
|
118
|
-
}
|
|
119
|
-
autoIdentifyIfNeeded(e, t) {
|
|
120
|
-
if (!e) return;
|
|
121
|
-
const n = this.getCurrentUserId(), o = n && typeof n == "string" && n.length > 20;
|
|
122
|
-
n && n !== "anonymous" && o || (a.console.log(`[trails-sdk] DEBUG: Auto-identifying from ${t}`, {
|
|
123
|
-
userAddress: e,
|
|
124
|
-
currentUserId: n,
|
|
125
|
-
currentUserIdLength: n?.length,
|
|
126
|
-
isHashedAddressFormat: o,
|
|
127
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
128
|
-
}), this.identifyUser({ address: e }));
|
|
129
|
-
}
|
|
130
|
-
getCurrentUserId() {
|
|
131
|
-
}
|
|
132
|
-
getCommonProps() {
|
|
133
|
-
return {
|
|
134
|
-
...this.getNavigatorProps(),
|
|
135
|
-
...this.getDocumentProps(),
|
|
136
|
-
...this.getWindowProps(),
|
|
137
|
-
sequenceProjectAccessKey: this.sequenceProjectAccessKey || "",
|
|
138
|
-
sdkVersion: w()
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
getNavigatorProps() {
|
|
142
|
-
if (typeof navigator > "u") return {
|
|
143
|
-
userAgent: "",
|
|
144
|
-
userLocale: "",
|
|
145
|
-
userLanguage: "",
|
|
146
|
-
userCountry: "",
|
|
147
|
-
userTimezone: "",
|
|
148
|
-
userTimezoneOffset: ""
|
|
149
|
-
};
|
|
150
|
-
const e = v(), t = e.includes("-") && e.split("-")[1] || "", n = e.includes("-") && e.split("-")[0] || e;
|
|
151
|
-
let o = "", r = "";
|
|
152
|
-
try {
|
|
153
|
-
o = Intl.DateTimeFormat().resolvedOptions().timeZone || "", r = (/* @__PURE__ */ new Date()).getTimezoneOffset().toString();
|
|
154
|
-
} catch {
|
|
155
|
-
}
|
|
156
|
-
return {
|
|
157
|
-
userAgent: navigator.userAgent,
|
|
158
|
-
userLocale: e,
|
|
159
|
-
userLanguage: n,
|
|
160
|
-
userCountry: t,
|
|
161
|
-
userTimezone: o,
|
|
162
|
-
userTimezoneOffset: r
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
getDocumentProps() {
|
|
166
|
-
return typeof window > "u" ? {
|
|
167
|
-
userAgent: "",
|
|
168
|
-
title: ""
|
|
169
|
-
} : {
|
|
170
|
-
title: document.title,
|
|
171
|
-
referrer: document.referrer
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
getWindowProps() {
|
|
175
|
-
return typeof window > "u" ? {
|
|
176
|
-
url: "",
|
|
177
|
-
origin: "",
|
|
178
|
-
hostname: "",
|
|
179
|
-
pathname: "",
|
|
180
|
-
screenWidth: "",
|
|
181
|
-
screenHeight: "",
|
|
182
|
-
screenPixelRatio: "",
|
|
183
|
-
screenResolution: "",
|
|
184
|
-
screenOrientation: ""
|
|
185
|
-
} : {
|
|
186
|
-
url: window.location?.href,
|
|
187
|
-
origin: window?.origin || window?.location?.origin,
|
|
188
|
-
hostname: window.location?.hostname,
|
|
189
|
-
pathname: window.location?.pathname,
|
|
190
|
-
screenWidth: window.innerWidth?.toString(),
|
|
191
|
-
screenHeight: window.innerHeight?.toString(),
|
|
192
|
-
screenPixelRatio: window.devicePixelRatio?.toString(),
|
|
193
|
-
screenResolution: `${window.screen?.width}x${window.screen?.height}`,
|
|
194
|
-
screenOrientation: window.screen?.orientation?.type?.toString()
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
trackPageview() {
|
|
198
|
-
this.track({
|
|
199
|
-
event: s.PAGEVIEW,
|
|
200
|
-
props: this.getCommonProps()
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
trackWidgetScreen(e) {
|
|
204
|
-
this.autoIdentifyIfNeeded(e.userAddress, "trackWidgetScreen"), this.track({
|
|
205
|
-
event: s.WIDGET_SCREEN,
|
|
206
|
-
props: {
|
|
207
|
-
...this.getCommonProps(),
|
|
208
|
-
checkoutId: i(),
|
|
209
|
-
...e,
|
|
210
|
-
...e.userAddress && { userAddress: c(e.userAddress) }
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
trackPaymentStarted(e) {
|
|
215
|
-
this.autoIdentifyIfNeeded(e.userAddress, "trackPaymentStarted"), T();
|
|
216
|
-
const { onramp: t, ...n } = e, o = t ? {
|
|
217
|
-
...t.sessionId && { onrampSessionId: t.sessionId },
|
|
218
|
-
onrampProvider: t.provider,
|
|
219
|
-
onrampSourceAmount: t.sourceAmount,
|
|
220
|
-
onrampSourceCurrency: t.sourceCurrencyCode,
|
|
221
|
-
onrampDestinationAmount: t.destinationAmount,
|
|
222
|
-
onrampDestinationCurrency: t.destinationCurrencyCode,
|
|
223
|
-
onrampExchangeRate: t.exchangeRate,
|
|
224
|
-
...t.networkFees && { onrampNetworkFees: t.networkFees },
|
|
225
|
-
...t.transactionFee && { onrampTransactionFee: t.transactionFee },
|
|
226
|
-
...t.totalFees && { onrampTotalFees: t.totalFees },
|
|
227
|
-
onrampCountryCode: t.countryCode,
|
|
228
|
-
...t.paymentMethod && { onrampPaymentMethod: t.paymentMethod },
|
|
229
|
-
...t.quoteId && { onrampQuoteId: t.quoteId },
|
|
230
|
-
onrampTimestamp: t.timestamp
|
|
231
|
-
} : {};
|
|
232
|
-
this.track({
|
|
233
|
-
event: s.PAYMENT_STARTED,
|
|
234
|
-
props: {
|
|
235
|
-
...this.getCommonProps(),
|
|
236
|
-
checkoutId: M(e.userAddress),
|
|
237
|
-
...n,
|
|
238
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
239
|
-
...e.intentAddress && { intentAddress: e.intentAddress },
|
|
240
|
-
destinationChainId: e.destinationChainId?.toString(),
|
|
241
|
-
originChainId: e.originChainId?.toString(),
|
|
242
|
-
originTokenAmount: e.originTokenAmount?.toString(),
|
|
243
|
-
originTokenDecimals: e.originTokenDecimals?.toString(),
|
|
244
|
-
destinationTokenAmount: e.destinationTokenAmount?.toString(),
|
|
245
|
-
destinationTokenDecimals: e.destinationTokenDecimals?.toString(),
|
|
246
|
-
sourceTokenPriceUsd: e.sourceTokenPriceUsd?.toString(),
|
|
247
|
-
destinationTokenPriceUsd: e.destinationTokenPriceUsd?.toString(),
|
|
248
|
-
tradeType: e.tradeType,
|
|
249
|
-
swapProvider: e.swapProvider,
|
|
250
|
-
bridgeProvider: e.bridgeProvider,
|
|
251
|
-
...o
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
validateUsdAmount(e, t) {
|
|
256
|
-
if (!e) return;
|
|
257
|
-
let n;
|
|
258
|
-
if (typeof e == "number") n = e;
|
|
259
|
-
else if (typeof e == "string") {
|
|
260
|
-
if (n = Number(e), !O(n)) {
|
|
261
|
-
a.console.warn("[trails-sdk] Invalid USD amount string, expected a number:", {
|
|
262
|
-
usdAmount: e,
|
|
263
|
-
context: t
|
|
264
|
-
});
|
|
265
|
-
return;
|
|
266
|
-
}
|
|
267
|
-
} else return;
|
|
268
|
-
if (!_(n)) {
|
|
269
|
-
a.console.warn("[trails-sdk] Invalid USD amount detected, not sending to analytics:", {
|
|
270
|
-
usdAmount: e,
|
|
271
|
-
context: t
|
|
272
|
-
});
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
if (n > 1e9) {
|
|
276
|
-
a.console.warn("[trails-sdk] Suspiciously large USD amount detected, not sending to analytics:", {
|
|
277
|
-
usdAmount: e,
|
|
278
|
-
context: t
|
|
279
|
-
});
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
if (t.rawAmount && t.formattedAmount && t.decimals !== void 0 && t.decimals >= 0 && t.decimals <= 18) try {
|
|
283
|
-
const o = BigInt(t.rawAmount), r = t.decimals, m = BigInt(10 ** r), g = Number(o) / Number(m), k = Number(t.formattedAmount), A = k / g;
|
|
284
|
-
if (A > 2 || A < 0.5) {
|
|
285
|
-
a.console.warn("[trails-sdk] Formatted amount doesn't match raw amount with decimals, not sending USD to analytics:", {
|
|
286
|
-
usdAmount: e,
|
|
287
|
-
rawAmount: t.rawAmount,
|
|
288
|
-
formattedAmount: t.formattedAmount,
|
|
289
|
-
decimals: t.decimals,
|
|
290
|
-
expectedFormatted: g,
|
|
291
|
-
actualFormatted: k,
|
|
292
|
-
ratio: A,
|
|
293
|
-
context: t
|
|
294
|
-
});
|
|
295
|
-
return;
|
|
296
|
-
}
|
|
297
|
-
} catch (o) {
|
|
298
|
-
a.console.warn("[trails-sdk] Error validating raw amount against formatted amount:", o);
|
|
299
|
-
}
|
|
300
|
-
if (t.formattedAmount && t.priceUsd && Number(t.formattedAmount) > 0 && Number(t.priceUsd) > 0) {
|
|
301
|
-
const o = Number(t.formattedAmount) * Number(t.priceUsd), r = n / o;
|
|
302
|
-
if (r > 10 || r < 0.1) {
|
|
303
|
-
a.console.warn("[trails-sdk] USD amount doesn't match expected calculation, not sending to analytics:", {
|
|
304
|
-
usdAmount: e,
|
|
305
|
-
expectedUsd: o,
|
|
306
|
-
ratio: r,
|
|
307
|
-
context: t
|
|
308
|
-
});
|
|
309
|
-
return;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
return n.toString();
|
|
313
|
-
}
|
|
314
|
-
trackPaymentCompleted(e) {
|
|
315
|
-
this.autoIdentifyIfNeeded(e.userAddress, "trackPaymentCompleted");
|
|
316
|
-
const t = this.validateUsdAmount(e.depositTokenAmountUsd, {
|
|
317
|
-
rawAmount: e.depositTokenAmount,
|
|
318
|
-
formattedAmount: e.depositTokenAmountFormatted,
|
|
319
|
-
decimals: e.originTokenDecimals,
|
|
320
|
-
priceUsd: e.sourceTokenPriceUsd,
|
|
321
|
-
tokenSymbol: e.originTokenSymbol
|
|
322
|
-
}), n = this.validateUsdAmount(e.destinationTokenAmountUsd, {
|
|
323
|
-
rawAmount: e.destinationTokenAmount,
|
|
324
|
-
formattedAmount: e.destinationTokenAmountFormatted,
|
|
325
|
-
decimals: e.destinationTokenDecimals,
|
|
326
|
-
priceUsd: e.destinationTokenPriceUsd,
|
|
327
|
-
tokenSymbol: e.destinationTokenSymbol
|
|
328
|
-
});
|
|
329
|
-
let o = n;
|
|
330
|
-
if (t && n) {
|
|
331
|
-
const k = Number(t), A = Number(n) / k;
|
|
332
|
-
(A > 100 || A < 0.01) && (a.console.warn("[trails-sdk] Suspicious USD ratio between deposit and destination, not sending destination USD:", {
|
|
333
|
-
depositTokenAmountUsd: t,
|
|
334
|
-
destinationTokenAmountUsd: n,
|
|
335
|
-
ratio: A,
|
|
336
|
-
depositTokenAmount: e.depositTokenAmount,
|
|
337
|
-
destinationTokenAmount: e.destinationTokenAmount,
|
|
338
|
-
originTokenSymbol: e.originTokenSymbol,
|
|
339
|
-
destinationTokenSymbol: e.destinationTokenSymbol
|
|
340
|
-
}), o = void 0);
|
|
341
|
-
}
|
|
342
|
-
const { onramp: r, ...m } = e, g = r ? {
|
|
343
|
-
...r.sessionId && { onrampSessionId: r.sessionId },
|
|
344
|
-
onrampProvider: r.provider,
|
|
345
|
-
onrampSourceAmount: r.sourceAmount,
|
|
346
|
-
onrampSourceCurrency: r.sourceCurrencyCode,
|
|
347
|
-
onrampDestinationAmount: r.destinationAmount,
|
|
348
|
-
onrampDestinationCurrency: r.destinationCurrencyCode,
|
|
349
|
-
onrampExchangeRate: r.exchangeRate,
|
|
350
|
-
...r.networkFees && { onrampNetworkFees: r.networkFees },
|
|
351
|
-
...r.transactionFee && { onrampTransactionFee: r.transactionFee },
|
|
352
|
-
...r.totalFees && { onrampTotalFees: r.totalFees },
|
|
353
|
-
onrampCountryCode: r.countryCode,
|
|
354
|
-
...r.paymentMethod && { onrampPaymentMethod: r.paymentMethod },
|
|
355
|
-
...r.quoteId && { onrampQuoteId: r.quoteId },
|
|
356
|
-
onrampTimestamp: r.timestamp
|
|
357
|
-
} : {};
|
|
358
|
-
this.track({
|
|
359
|
-
event: s.PAYMENT_COMPLETED,
|
|
360
|
-
props: {
|
|
361
|
-
...this.getCommonProps(),
|
|
362
|
-
checkoutId: i(),
|
|
363
|
-
...m,
|
|
364
|
-
originChainId: e.originChainId?.toString(),
|
|
365
|
-
destinationChainId: e.destinationChainId?.toString(),
|
|
366
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
367
|
-
...e.intentAddress && { intentAddress: e.intentAddress },
|
|
368
|
-
originTokenAddress: e.originTokenAddress,
|
|
369
|
-
originTokenSymbol: e.originTokenSymbol,
|
|
370
|
-
originTokenAmount: e.originTokenAmount?.toString(),
|
|
371
|
-
originTokenAmountFormatted: e.originTokenAmountFormatted?.toString(),
|
|
372
|
-
depositTokenAmount: e.depositTokenAmount?.toString(),
|
|
373
|
-
depositTokenAmountFormatted: e.depositTokenAmountFormatted?.toString(),
|
|
374
|
-
depositTokenAmountUsd: t,
|
|
375
|
-
destinationTokenAmount: e.destinationTokenAmount?.toString(),
|
|
376
|
-
destinationTokenAmountFormatted: e.destinationTokenAmountFormatted?.toString(),
|
|
377
|
-
destinationTokenAmountUsd: o,
|
|
378
|
-
originTokenDecimals: e.originTokenDecimals?.toString(),
|
|
379
|
-
destinationTokenDecimals: e.destinationTokenDecimals?.toString(),
|
|
380
|
-
tradeType: e.tradeType,
|
|
381
|
-
sourceTokenPriceUsd: e.sourceTokenPriceUsd?.toString(),
|
|
382
|
-
destinationTokenPriceUsd: e.destinationTokenPriceUsd?.toString(),
|
|
383
|
-
swapProvider: e.swapProvider,
|
|
384
|
-
bridgeProvider: e.bridgeProvider,
|
|
385
|
-
...g
|
|
386
|
-
}
|
|
387
|
-
}), T();
|
|
388
|
-
}
|
|
389
|
-
trackPaymentError(e) {
|
|
390
|
-
this.track({
|
|
391
|
-
event: s.PAYMENT_ERROR,
|
|
392
|
-
props: {
|
|
393
|
-
...this.getCommonProps(),
|
|
394
|
-
checkoutId: i(),
|
|
395
|
-
...e,
|
|
396
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
397
|
-
...e.intentAddress && { intentAddress: e.intentAddress },
|
|
398
|
-
originChainId: e.originChainId?.toString(),
|
|
399
|
-
destinationChainId: e.destinationChainId?.toString()
|
|
400
|
-
}
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
trackWalletConnected(e) {
|
|
404
|
-
this.track({
|
|
405
|
-
event: s.WALLET_CONNECTED,
|
|
406
|
-
props: {
|
|
407
|
-
...this.getCommonProps(),
|
|
408
|
-
...e,
|
|
409
|
-
address: e.address,
|
|
410
|
-
chainId: e.chainId?.toString()
|
|
411
|
-
}
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
trackWalletDisconnected(e) {
|
|
415
|
-
this.track({
|
|
416
|
-
event: s.WALLET_DISCONNECTED,
|
|
417
|
-
props: {
|
|
418
|
-
...this.getCommonProps(),
|
|
419
|
-
...e || {}
|
|
420
|
-
}
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
trackIntentQuoteRequested(e) {
|
|
424
|
-
this.autoIdentifyIfNeeded(e.userAddress, "trackIntentQuoteRequested"), this.track({
|
|
425
|
-
event: s.INTENT_QUOTE_REQUESTED,
|
|
426
|
-
props: {
|
|
427
|
-
...this.getCommonProps(),
|
|
428
|
-
checkoutId: i(),
|
|
429
|
-
originChainId: e.originChainId?.toString(),
|
|
430
|
-
destinationChainId: e.destinationChainId?.toString(),
|
|
431
|
-
originTokenAddress: e.originTokenAddress,
|
|
432
|
-
destinationTokenAddress: e.destinationTokenAddress,
|
|
433
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
434
|
-
originTokenSymbol: e.originTokenSymbol,
|
|
435
|
-
destinationTokenSymbol: e.destinationTokenSymbol
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
trackIntentQuoteReceived(e) {
|
|
440
|
-
this.autoIdentifyIfNeeded(e.userAddress, "trackIntentQuoteReceived"), this.track({
|
|
441
|
-
event: s.INTENT_QUOTE_RECEIVED,
|
|
442
|
-
props: {
|
|
443
|
-
...this.getCommonProps(),
|
|
444
|
-
quoteId: e.quoteId,
|
|
445
|
-
checkoutId: i(),
|
|
446
|
-
totalFeeUSD: e.totalFeeUSD?.toString(),
|
|
447
|
-
trailsFixedFeeUSD: e.trailsFixedFeeUSD?.toString(),
|
|
448
|
-
crossChainFeeTotalUSD: e.crossChainFeeTotalUSD?.toString(),
|
|
449
|
-
takerFeeUSD: e.takerFeeUSD?.toString(),
|
|
450
|
-
providerFeeUSD: e.providerFeeUSD?.toString(),
|
|
451
|
-
trailsSwapFeeUSD: e.trailsSwapFeeUSD?.toString(),
|
|
452
|
-
gasFeesPerChainUSD: e.gasFeesPerChainUSD?.map((t) => t?.toString()).join(","),
|
|
453
|
-
originTokenTotalAmount: e.originTokenTotalAmount?.toString(),
|
|
454
|
-
totalFeeAmount: e.totalFeeAmount?.toString(),
|
|
455
|
-
provider: e.provider,
|
|
456
|
-
swapProvider: e.swapProvider,
|
|
457
|
-
bridgeProvider: e.bridgeProvider,
|
|
458
|
-
feeToken: e.feeToken,
|
|
459
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
460
|
-
...e.intentAddress && { intentAddress: e.intentAddress },
|
|
461
|
-
feeTokenSymbol: e.feeTokenSymbol,
|
|
462
|
-
originTokenSymbol: e.originTokenSymbol,
|
|
463
|
-
destinationTokenSymbol: e.destinationTokenSymbol,
|
|
464
|
-
depositTokenAmountUsd: e.depositTokenAmountUsd?.toString(),
|
|
465
|
-
originPreconditionAmount: e.originPreconditionAmount?.toString(),
|
|
466
|
-
destinationPreconditionAmount: e.destinationPreconditionAmount?.toString(),
|
|
467
|
-
fromAmount: e.fromAmount?.toString(),
|
|
468
|
-
fromAmountMin: e.fromAmountMin?.toString(),
|
|
469
|
-
toAmount: e.toAmount?.toString(),
|
|
470
|
-
toAmountMin: e.toAmountMin?.toString()
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
}
|
|
474
|
-
trackIntentQuoteError(e) {
|
|
475
|
-
this.track({
|
|
476
|
-
event: s.INTENT_QUOTE_ERROR,
|
|
477
|
-
props: {
|
|
478
|
-
...this.getCommonProps(),
|
|
479
|
-
checkoutId: i(),
|
|
480
|
-
...e,
|
|
481
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
482
|
-
originChainId: e.originChainId?.toString(),
|
|
483
|
-
destinationChainId: e.destinationChainId?.toString(),
|
|
484
|
-
originTokenSymbol: e.originTokenSymbol,
|
|
485
|
-
destinationTokenSymbol: e.destinationTokenSymbol
|
|
486
|
-
}
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
trackIntentCommitStarted(e) {
|
|
490
|
-
this.track({
|
|
491
|
-
event: s.INTENT_COMMIT_STARTED,
|
|
492
|
-
props: {
|
|
493
|
-
...this.getCommonProps(),
|
|
494
|
-
checkoutId: i(),
|
|
495
|
-
...e,
|
|
496
|
-
originChainId: e.originChainId?.toString(),
|
|
497
|
-
destinationChainId: e.destinationChainId?.toString(),
|
|
498
|
-
intentAddress: e.intentAddress,
|
|
499
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
500
|
-
originTokenSymbol: e.originTokenSymbol,
|
|
501
|
-
destinationTokenSymbol: e.destinationTokenSymbol
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
|
-
trackIntentCommitCompleted(e) {
|
|
506
|
-
this.track({
|
|
507
|
-
event: s.INTENT_COMMIT_COMPLETED,
|
|
508
|
-
props: {
|
|
509
|
-
...this.getCommonProps(),
|
|
510
|
-
checkoutId: i(),
|
|
511
|
-
...e,
|
|
512
|
-
originChainId: e.originChainId?.toString(),
|
|
513
|
-
destinationChainId: e.destinationChainId?.toString(),
|
|
514
|
-
intentAddress: e.intentAddress,
|
|
515
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
516
|
-
originTokenSymbol: e.originTokenSymbol,
|
|
517
|
-
destinationTokenSymbol: e.destinationTokenSymbol
|
|
518
|
-
}
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
trackIntentCommitError(e) {
|
|
522
|
-
this.track({
|
|
523
|
-
event: s.INTENT_COMMIT_ERROR,
|
|
524
|
-
props: {
|
|
525
|
-
...this.getCommonProps(),
|
|
526
|
-
checkoutId: i(),
|
|
527
|
-
...e,
|
|
528
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
529
|
-
...e.intentAddress && { intentAddress: e.intentAddress },
|
|
530
|
-
originChainId: e.originChainId?.toString(),
|
|
531
|
-
destinationChainId: e.destinationChainId?.toString(),
|
|
532
|
-
originTokenSymbol: e.originTokenSymbol,
|
|
533
|
-
destinationTokenSymbol: e.destinationTokenSymbol
|
|
534
|
-
}
|
|
535
|
-
});
|
|
536
|
-
}
|
|
537
|
-
trackTransactionStarted(e) {
|
|
538
|
-
this.autoIdentifyIfNeeded(e.userAddress, "trackTransactionStarted"), this.track({
|
|
539
|
-
event: s.TRANSACTION_STARTED,
|
|
540
|
-
props: {
|
|
541
|
-
...this.getCommonProps(),
|
|
542
|
-
checkoutId: i(),
|
|
543
|
-
...e,
|
|
544
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
545
|
-
...e.intentAddress && { intentAddress: e.intentAddress },
|
|
546
|
-
chainId: e.chainId?.toString(),
|
|
547
|
-
depositTokenAmountUsd: e.depositTokenAmountUsd?.toString()
|
|
548
|
-
}
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
trackTransactionSigned(e) {
|
|
552
|
-
this.track({
|
|
553
|
-
event: s.TRANSACTION_SIGNED,
|
|
554
|
-
props: {
|
|
555
|
-
...this.getCommonProps(),
|
|
556
|
-
checkoutId: i(),
|
|
557
|
-
...e,
|
|
558
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
559
|
-
...e.intentAddress && { intentAddress: e.intentAddress },
|
|
560
|
-
depositTokenAmountUsd: e.depositTokenAmountUsd?.toString()
|
|
561
|
-
}
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
trackTransactionSubmitted(e) {
|
|
565
|
-
this.track({
|
|
566
|
-
event: s.TRANSACTION_SUBMITTED,
|
|
567
|
-
props: {
|
|
568
|
-
...this.getCommonProps(),
|
|
569
|
-
checkoutId: i(),
|
|
570
|
-
...e,
|
|
571
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
572
|
-
...e.intentAddress && { intentAddress: e.intentAddress },
|
|
573
|
-
chainId: e.chainId?.toString(),
|
|
574
|
-
depositTokenAmountUsd: e.depositTokenAmountUsd?.toString()
|
|
575
|
-
}
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
trackTransactionConfirmed(e) {
|
|
579
|
-
this.track({
|
|
580
|
-
event: s.TRANSACTION_CONFIRMED,
|
|
581
|
-
props: {
|
|
582
|
-
...this.getCommonProps(),
|
|
583
|
-
checkoutId: i(),
|
|
584
|
-
...e,
|
|
585
|
-
chainId: e.chainId?.toString(),
|
|
586
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
587
|
-
...e.intentAddress && { intentAddress: e.intentAddress },
|
|
588
|
-
blockNumber: e.blockNumber?.toString(),
|
|
589
|
-
depositTokenAmountUsd: e.depositTokenAmountUsd?.toString()
|
|
590
|
-
}
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
trackTransactionError(e) {
|
|
594
|
-
this.track({
|
|
595
|
-
event: s.TRANSACTION_ERROR,
|
|
596
|
-
props: {
|
|
597
|
-
...this.getCommonProps(),
|
|
598
|
-
checkoutId: i(),
|
|
599
|
-
...e,
|
|
600
|
-
...e.userAddress && { userAddress: c(e.userAddress) },
|
|
601
|
-
...e.intentAddress && { intentAddress: e.intentAddress }
|
|
602
|
-
}
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
trackRelayerCallStarted(e) {
|
|
606
|
-
this.track({
|
|
607
|
-
event: s.RELAYER_CALL_STARTED,
|
|
608
|
-
props: {
|
|
609
|
-
...this.getCommonProps(),
|
|
610
|
-
checkoutId: i(),
|
|
611
|
-
...e,
|
|
612
|
-
...e.walletAddress && { walletAddress: e.walletAddress },
|
|
613
|
-
...e.contractAddress && { contractAddress: e.contractAddress },
|
|
614
|
-
chainId: e.chainId?.toString()
|
|
615
|
-
}
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
trackRelayerCallCompleted(e) {
|
|
619
|
-
this.track({
|
|
620
|
-
event: s.RELAYER_CALL_COMPLETED,
|
|
621
|
-
props: {
|
|
622
|
-
...this.getCommonProps(),
|
|
623
|
-
checkoutId: i(),
|
|
624
|
-
...e,
|
|
625
|
-
...e.walletAddress && { walletAddress: e.walletAddress },
|
|
626
|
-
...e.contractAddress && { contractAddress: e.contractAddress },
|
|
627
|
-
chainId: e.chainId?.toString()
|
|
628
|
-
}
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
trackRelayerCallError(e) {
|
|
632
|
-
this.track({
|
|
633
|
-
event: s.RELAYER_CALL_ERROR,
|
|
634
|
-
props: {
|
|
635
|
-
...this.getCommonProps(),
|
|
636
|
-
checkoutId: i(),
|
|
637
|
-
...e,
|
|
638
|
-
...e.walletAddress && { walletAddress: e.walletAddress },
|
|
639
|
-
...e.contractAddress && { contractAddress: e.contractAddress },
|
|
640
|
-
chainId: e.chainId?.toString()
|
|
641
|
-
}
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
trackOnrampQuoteRequested(e) {
|
|
645
|
-
this.track({
|
|
646
|
-
event: s.ONRAMP_QUOTE_REQUESTED,
|
|
647
|
-
props: {
|
|
648
|
-
...this.getCommonProps(),
|
|
649
|
-
checkoutId: i(),
|
|
650
|
-
...e,
|
|
651
|
-
...e.walletAddress && { walletAddress: c(e.walletAddress) }
|
|
652
|
-
}
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
trackOnrampQuoteReceived(e) {
|
|
656
|
-
this.track({
|
|
657
|
-
event: s.ONRAMP_QUOTE_RECEIVED,
|
|
658
|
-
props: {
|
|
659
|
-
...this.getCommonProps(),
|
|
660
|
-
checkoutId: i(),
|
|
661
|
-
...e,
|
|
662
|
-
quotesCount: e.quotesCount?.toString(),
|
|
663
|
-
responseTime: e.responseTime?.toString(),
|
|
664
|
-
...e.walletAddress && { walletAddress: c(e.walletAddress) }
|
|
665
|
-
}
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
trackOnrampQuoteError(e) {
|
|
669
|
-
this.track({
|
|
670
|
-
event: s.ONRAMP_QUOTE_ERROR,
|
|
671
|
-
props: {
|
|
672
|
-
...this.getCommonProps(),
|
|
673
|
-
checkoutId: i(),
|
|
674
|
-
...e,
|
|
675
|
-
responseTime: e.responseTime?.toString(),
|
|
676
|
-
...e.walletAddress && { walletAddress: c(e.walletAddress) }
|
|
677
|
-
}
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
trackWidgetClick(e) {
|
|
681
|
-
const t = e.userAddress;
|
|
682
|
-
this.autoIdentifyIfNeeded(t, "trackWidgetClick"), this.track({
|
|
683
|
-
event: s.WIDGET_CLICK,
|
|
684
|
-
props: {
|
|
685
|
-
...this.getCommonProps(),
|
|
686
|
-
...e,
|
|
687
|
-
userAddress: t ? E(t) : void 0
|
|
688
|
-
}
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
trackOnrampWidgetSession(e) {
|
|
692
|
-
this.track({
|
|
693
|
-
event: s.ONRAMP_WIDGET_SESSION,
|
|
694
|
-
props: {
|
|
695
|
-
...this.getCommonProps(),
|
|
696
|
-
checkoutId: i(),
|
|
697
|
-
...e,
|
|
698
|
-
...e.userAddress && { userAddress: c(e.userAddress) }
|
|
699
|
-
}
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
|
-
trackOnrampPaymentCompleted(e) {
|
|
703
|
-
this.track({
|
|
704
|
-
event: s.ONRAMP_PAYMENT_COMPLETED,
|
|
705
|
-
props: {
|
|
706
|
-
...this.getCommonProps(),
|
|
707
|
-
checkoutId: i(),
|
|
708
|
-
...e,
|
|
709
|
-
sourceAmount: e.sourceAmount?.toString(),
|
|
710
|
-
destinationAmount: e.destinationAmount?.toString(),
|
|
711
|
-
...e.userAddress && { userAddress: c(e.userAddress) }
|
|
712
|
-
}
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
}, W = class extends R {
|
|
716
|
-
constructor(e, t, n, o) {
|
|
717
|
-
super(o), p(this, "databeat", void 0), p(this, "loggingEnabled", !1), this.databeat = new D(e, t, {
|
|
718
|
-
userIdentTracking: !0,
|
|
719
|
-
privacy: {
|
|
720
|
-
userIdHash: !1,
|
|
721
|
-
userAgentSalt: !1
|
|
722
|
-
},
|
|
723
|
-
...n
|
|
724
|
-
});
|
|
725
|
-
}
|
|
726
|
-
identifyUser({ address: e }) {
|
|
727
|
-
b() !== e?.toLowerCase() && T();
|
|
728
|
-
const t = c(e);
|
|
729
|
-
a.console.log("[trails-sdk] DEBUG: identifyUser called", {
|
|
730
|
-
address: e,
|
|
731
|
-
hashedAddress: t,
|
|
732
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
733
|
-
}), this.databeat.identify(t, {
|
|
734
|
-
userIdHash: !1,
|
|
735
|
-
allowTracking: !0
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
unidentifyUser() {
|
|
739
|
-
T(), this.databeat.reset(), this.databeat.identify();
|
|
740
|
-
}
|
|
741
|
-
getCurrentUserId() {
|
|
742
|
-
return this.databeat.getUserId();
|
|
743
|
-
}
|
|
744
|
-
track(e) {
|
|
745
|
-
const t = {
|
|
746
|
-
...e,
|
|
747
|
-
props: Q(e.props)
|
|
748
|
-
};
|
|
749
|
-
return this.databeat.track(t).catch(() => {
|
|
750
|
-
}).then(() => this.logEvent(e));
|
|
751
|
-
}
|
|
752
|
-
enable() {
|
|
753
|
-
return this.databeat.enable();
|
|
754
|
-
}
|
|
755
|
-
allowTracking(e) {
|
|
756
|
-
return this.databeat.allowTracking(e);
|
|
757
|
-
}
|
|
758
|
-
disable() {
|
|
759
|
-
return this.databeat.disable();
|
|
760
|
-
}
|
|
761
|
-
logEvent(e) {
|
|
762
|
-
this.loggingEnabled && a.console.log("[trails-sdk] Analytics track:", e);
|
|
763
|
-
}
|
|
764
|
-
getSessionId() {
|
|
765
|
-
return this.databeat.getSessionId();
|
|
766
|
-
}
|
|
767
|
-
getUserId() {
|
|
768
|
-
return this.databeat.getUserId();
|
|
769
|
-
}
|
|
770
|
-
}, q = class extends R {
|
|
771
|
-
constructor({ loggingEnabled: e, sequenceProjectAccessKey: t }) {
|
|
772
|
-
super(t), p(this, "loggingEnabled", !1), this.loggingEnabled = e;
|
|
773
|
-
}
|
|
774
|
-
identifyUser(e) {
|
|
775
|
-
return this;
|
|
776
|
-
}
|
|
777
|
-
unidentifyUser() {
|
|
778
|
-
return this;
|
|
779
|
-
}
|
|
780
|
-
enable() {
|
|
781
|
-
return this;
|
|
782
|
-
}
|
|
783
|
-
allowTracking(e) {
|
|
784
|
-
return this;
|
|
785
|
-
}
|
|
786
|
-
track(e) {
|
|
787
|
-
return this.logEvent(e), this;
|
|
788
|
-
}
|
|
789
|
-
disable() {
|
|
790
|
-
return this;
|
|
791
|
-
}
|
|
792
|
-
logEvent(e) {
|
|
793
|
-
this.loggingEnabled && a.console.log("[trails-sdk] MockAnalytics track:", e);
|
|
794
|
-
}
|
|
795
|
-
getSessionId() {
|
|
796
|
-
return `0x${Math.random().toString(16).slice(2, 10)}`;
|
|
797
|
-
}
|
|
798
|
-
getUserId() {
|
|
799
|
-
return `0x${Math.random().toString(16).slice(2, 10)}`;
|
|
800
|
-
}
|
|
801
|
-
}, u = null, I, d = (e) => {
|
|
802
|
-
const t = h("analyticsDebugLocal") === "true", n = h("analyticsDebugProd") === "true", o = N("CI") === "true", r = (t || o) && !n, m = e ?? I;
|
|
803
|
-
return u ? m && u.updateProjectAccessKey(m) : (r ? u = new q({
|
|
804
|
-
loggingEnabled: !o,
|
|
805
|
-
sequenceProjectAccessKey: m
|
|
806
|
-
}) : u = new W(P, { jwt: f }, {}, m), I = void 0), o || a.console.log("[trails-sdk] Analytics sessionId:", u.getSessionId(), "[trails-sdk] Analytics userId:", u.getUserId()), u;
|
|
807
|
-
}, Z = (e) => {
|
|
808
|
-
u ? u.updateProjectAccessKey(e) : I = e;
|
|
809
|
-
}, X = (e) => {
|
|
810
|
-
d().trackWidgetScreen(e);
|
|
811
|
-
}, ee = (e) => {
|
|
812
|
-
d().trackPaymentStarted(e);
|
|
813
|
-
}, te = (e) => {
|
|
814
|
-
d().trackPaymentCompleted(e);
|
|
815
|
-
}, ne = (e) => {
|
|
816
|
-
d().trackPaymentError(e);
|
|
817
|
-
}, re = (e) => {
|
|
818
|
-
const t = d();
|
|
819
|
-
t.unidentifyUser(), t.trackWalletDisconnected(e);
|
|
820
|
-
}, oe = (e) => {
|
|
821
|
-
d().trackIntentQuoteRequested(e);
|
|
822
|
-
}, se = (e) => {
|
|
823
|
-
d().trackIntentQuoteReceived(e);
|
|
824
|
-
}, ie = (e) => {
|
|
825
|
-
d().trackIntentQuoteError(e);
|
|
826
|
-
}, de = (e) => {
|
|
827
|
-
d().trackIntentCommitStarted(e);
|
|
828
|
-
}, ce = (e) => {
|
|
829
|
-
d().trackIntentCommitCompleted(e);
|
|
830
|
-
}, ae = (e) => {
|
|
831
|
-
d().trackIntentCommitError(e);
|
|
832
|
-
}, me = (e) => {
|
|
833
|
-
d().trackTransactionStarted(e);
|
|
834
|
-
}, ue = (e) => {
|
|
835
|
-
d().trackTransactionSubmitted(e);
|
|
836
|
-
}, Ae = (e) => {
|
|
837
|
-
d().trackTransactionConfirmed(e);
|
|
838
|
-
}, le = (e) => {
|
|
839
|
-
d().trackTransactionError(e);
|
|
840
|
-
}, Te = (e) => {
|
|
841
|
-
d().trackOnrampQuoteRequested(e);
|
|
842
|
-
}, ge = (e) => {
|
|
843
|
-
d().trackOnrampQuoteReceived(e);
|
|
844
|
-
}, ke = (e) => {
|
|
845
|
-
d().trackOnrampQuoteError(e);
|
|
846
|
-
}, pe = (e) => {
|
|
847
|
-
d().trackWidgetClick(e);
|
|
848
|
-
}, Ee = (e) => {
|
|
849
|
-
d().trackOnrampWidgetSession(e);
|
|
850
|
-
}, Ie = (e) => {
|
|
851
|
-
d().trackOnrampPaymentCompleted(e);
|
|
852
|
-
};
|
|
853
|
-
function he() {
|
|
854
|
-
return d().getSessionId();
|
|
855
|
-
}
|
|
856
|
-
export {
|
|
857
|
-
d as getAnalytics,
|
|
858
|
-
he as getSessionId,
|
|
859
|
-
ce as trackIntentCommitCompleted,
|
|
860
|
-
ae as trackIntentCommitError,
|
|
861
|
-
de as trackIntentCommitStarted,
|
|
862
|
-
ie as trackIntentQuoteError,
|
|
863
|
-
se as trackIntentQuoteReceived,
|
|
864
|
-
oe as trackIntentQuoteRequested,
|
|
865
|
-
Ie as trackOnrampPaymentCompleted,
|
|
866
|
-
ke as trackOnrampQuoteError,
|
|
867
|
-
ge as trackOnrampQuoteReceived,
|
|
868
|
-
Te as trackOnrampQuoteRequested,
|
|
869
|
-
Ee as trackOnrampWidgetSession,
|
|
870
|
-
te as trackPaymentCompleted,
|
|
871
|
-
ne as trackPaymentError,
|
|
872
|
-
ee as trackPaymentStarted,
|
|
873
|
-
Ae as trackTransactionConfirmed,
|
|
874
|
-
le as trackTransactionError,
|
|
875
|
-
me as trackTransactionStarted,
|
|
876
|
-
ue as trackTransactionSubmitted,
|
|
877
|
-
re as trackWalletDisconnected,
|
|
878
|
-
pe as trackWidgetClick,
|
|
879
|
-
X as trackWidgetScreen,
|
|
880
|
-
Z as updateProjectAccessKey
|
|
881
|
-
};
|