export declare const UNIFIED_SWAP_BRIDGE_EVENT_CATEGORY = "Unified SwapBridge"; /** * These event names map to events defined in the segment-schema: https://github.com/Consensys/segment-schema/tree/main/libraries/events/metamask-cross-chain-swaps */ export declare enum UnifiedSwapBridgeEventName { ButtonClicked = "Unified SwapBridge Button Clicked", PageViewed = "Unified SwapBridge Page Viewed", InputChanged = "Unified SwapBridge Input Changed", FiatCryptoToggleClicked = "Unified SwapBridge Fiat Crypto Toggle Clicked", InputSourceDestinationSwitched = "Unified SwapBridge Source Destination Switched", QuotesRequested = "Unified SwapBridge Quotes Requested", QuotesReceived = "Unified SwapBridge Quotes Received", QuotesError = "Unified SwapBridge Quotes Error", Submitted = "Unified SwapBridge Submitted", Completed = "Unified SwapBridge Completed", Failed = "Unified SwapBridge Failed", AllQuotesOpened = "Unified SwapBridge All Quotes Opened", AllQuotesSorted = "Unified SwapBridge All Quotes Sorted", QuoteSelected = "Unified SwapBridge Quote Selected", AssetDetailTooltipClicked = "Unified SwapBridge Asset Detail Tooltip Clicked", QuotesValidationFailed = "Unified SwapBridge Quotes Failed Validation", StatusValidationFailed = "Unified SwapBridge Status Failed Validation", AssetPickerOpened = "Unified SwapBridge Asset Picker Opened", PollingStatusUpdated = "Unified SwapBridge Polling Status Updated" } export declare enum PollingStatus { MaxPollingReached = "max_polling_reached", InvalidTransactionHash = "invalid_transaction_hash", ManuallyRestarted = "manually_restarted" } export declare enum AbortReason { NewQuoteRequest = "New Quote Request", QuoteRequestUpdated = "Quote Request Updated", ResetState = "Reset controller state", TransactionSubmitted = "Transaction submitted", GaslessTxBatchFetched = "Gasless transaction batch fetched" } /** * Identifies the entry point from which the user initiated a swap or bridge flow. * Included as the `location` property on every Unified SwapBridge event so * analytics can trace the user's origin regardless of where they are in the flow. */ export declare enum MetaMetricsSwapsEventSource { MainView = "Main View", TokenView = "Token View", TrendingExplore = "Trending Explore", Rewards = "Rewards", ActivityTabEmptyState = "Activity Tab Empty State", TransactionShield = "Transaction Shield", TransactionDetails = "Transaction Details", DeepLink = "Deep Link", Unknown = "Unknown" } export declare enum InputAmountPreset { PERCENT_25 = "25%", PERCENT_50 = "50%", PERCENT_75 = "75%", PERCENT_90 = "90%", MAX = "MAX" } export declare enum MetricsActionType { /** * @deprecated new events should use SWAPBRIDGE_V1 instead */ CROSSCHAIN_V1 = "crosschain-v1", SWAPBRIDGE_V1 = "swapbridge-v1" } export declare enum MetricsSwapType { SINGLE = "single_chain", CROSSCHAIN = "crosschain" } //# sourceMappingURL=constants.d.mts.map