0xtrails 0.13.2 → 0.14.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/dist/abis/trailsHydrate.d.ts +5 -42
- package/dist/abis/trailsHydrate.d.ts.map +1 -1
- package/dist/abis/trailsRouter.d.ts +1 -1
- package/dist/abis/trailsRouter.d.ts.map +1 -1
- package/dist/{widget/analytics → analytics/hooks}/useWidgetAnalytics.d.ts +2 -4
- package/dist/analytics/hooks/useWidgetAnalytics.d.ts.map +1 -0
- package/dist/analytics.d.ts.map +1 -1
- package/dist/chainSwitch.d.ts.map +1 -1
- package/dist/chains-C1NhDLF_.js +4 -0
- package/dist/chains-CcoarGia.js +658 -0
- package/dist/chains.d.ts +0 -1
- package/dist/chains.d.ts.map +1 -1
- package/dist/committedIntentStore.d.ts +5 -0
- package/dist/committedIntentStore.d.ts.map +1 -0
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/constants.d.ts +2 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/error.d.ts +73 -4
- package/dist/error.d.ts.map +1 -1
- package/dist/hooks/useAddressWalletIcon.d.ts.map +1 -0
- package/dist/hooks/useAmountUsd.d.ts.map +1 -0
- package/dist/hooks/useBalanceVisible.d.ts.map +1 -0
- package/dist/hooks/useChainFilter.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useCheckout.d.ts +15 -15
- package/dist/hooks/useCheckout.d.ts.map +1 -0
- package/dist/hooks/useClickTracking.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useCombinedHistory.d.ts +3 -2
- package/dist/hooks/useCombinedHistory.d.ts.map +1 -0
- package/dist/hooks/useConnector.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useCustomTokenSearch.d.ts +1 -1
- package/dist/hooks/useCustomTokenSearch.d.ts.map +1 -0
- package/dist/hooks/useDebounce.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useDebugScreens.d.ts +2 -2
- package/dist/hooks/useDebugScreens.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useDefaultDestinationToken.d.ts +1 -1
- package/dist/hooks/useDefaultDestinationToken.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useDefaultOriginToken.d.ts +1 -1
- package/dist/hooks/useDefaultOriginToken.d.ts.map +1 -0
- package/dist/hooks/useDepositMonitor.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useDestinationSelectedToken.d.ts +2 -2
- package/dist/hooks/useDestinationSelectedToken.d.ts.map +1 -0
- package/dist/hooks/useDisplayCurrencyPreference.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useEarnPool.d.ts +1 -1
- package/dist/hooks/useEarnPool.d.ts.map +1 -0
- package/dist/hooks/useEffectiveFundBalance.d.ts +28 -0
- package/dist/hooks/useEffectiveFundBalance.d.ts.map +1 -0
- package/dist/hooks/useExecutingIntentsCount.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useExternalFundingReceiptSync.d.ts +1 -1
- package/dist/hooks/useExternalFundingReceiptSync.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useFiatOnRampCurrencies.d.ts +1 -1
- package/dist/hooks/useFiatOnRampCurrencies.d.ts.map +1 -0
- package/dist/hooks/useFiatSelectedCurrency.d.ts.map +1 -0
- package/dist/hooks/useGetIntent.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useIntentReceiptBalances.d.ts +1 -1
- package/dist/hooks/useIntentReceiptBalances.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useIntentTransactionHistory.d.ts +2 -1
- package/dist/hooks/useIntentTransactionHistory.d.ts.map +1 -0
- package/dist/hooks/useIsMobile.d.ts.map +1 -0
- package/dist/hooks/useIsSequenceWallet.d.ts.map +1 -0
- package/dist/hooks/useLocalePreference.d.ts.map +1 -0
- package/dist/hooks/useMeldTransactionHistory.d.ts.map +1 -0
- package/dist/hooks/useMeldTransactionStatus.d.ts.map +1 -0
- package/dist/hooks/useOnRampCountryDefaults.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useOnRampPaymentMethods.d.ts +2 -2
- package/dist/hooks/useOnRampPaymentMethods.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useOnRampProviderWidget.d.ts +1 -1
- package/dist/hooks/useOnRampProviderWidget.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useOnRampQuote.d.ts +3 -3
- package/dist/hooks/useOnRampQuote.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useOnRampTransactionStatus.d.ts +1 -1
- package/dist/hooks/useOnRampTransactionStatus.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useOriginSelectedToken.d.ts +1 -1
- package/dist/hooks/useOriginSelectedToken.d.ts.map +1 -0
- package/dist/hooks/usePayMessage.d.ts.map +1 -0
- package/dist/hooks/usePriceImpactWarning.d.ts.map +1 -0
- package/dist/hooks/useQuote.d.ts +439 -0
- package/dist/hooks/useQuote.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useRecentTokens.d.ts +1 -1
- package/dist/hooks/useRecentTokens.d.ts.map +1 -0
- package/dist/hooks/useRecipients.d.ts.map +1 -0
- package/dist/hooks/useSelectedFeeOption.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useSelectedFundMethod.d.ts +11 -1
- package/dist/hooks/useSelectedFundMethod.d.ts.map +1 -0
- package/dist/hooks/useSelectedRecipient.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useSendForm.d.ts +6 -11
- package/dist/hooks/useSendForm.d.ts.map +1 -0
- package/dist/hooks/useSwapAmount.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useSwapState.d.ts +1 -1
- package/dist/hooks/useSwapState.d.ts.map +1 -0
- package/dist/hooks/useTargetAmount.d.ts.map +1 -0
- package/dist/hooks/useTheme.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useTokenList.d.ts +2 -2
- package/dist/hooks/useTokenList.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useTrailsSendTransaction.d.ts +1 -1
- package/dist/hooks/useTrailsSendTransaction.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useViewManager.d.ts +1 -1
- package/dist/hooks/useViewManager.d.ts.map +1 -0
- package/dist/hooks/useWalletConnectUri.d.ts +19 -0
- package/dist/hooks/useWalletConnectUri.d.ts.map +1 -0
- package/dist/hooks/useWalletConnectionContext.d.ts.map +1 -0
- package/dist/{widget/hooks → hooks}/useWidgetProps.d.ts +1 -1
- package/dist/hooks/useWidgetProps.d.ts.map +1 -0
- package/dist/hydrate/builder.d.ts +131 -0
- package/dist/hydrate/builder.d.ts.map +1 -0
- package/dist/hydrate/constants.d.ts +13 -0
- package/dist/hydrate/constants.d.ts.map +1 -0
- package/dist/hydrate/encodeExecute.d.ts +73 -0
- package/dist/hydrate/encodeExecute.d.ts.map +1 -0
- package/dist/hydrate/index.d.ts +6 -0
- package/dist/hydrate/index.d.ts.map +1 -0
- package/dist/hydrate/index.js +11 -0
- package/dist/hydrate/payload.d.ts +38 -0
- package/dist/hydrate/payload.d.ts.map +1 -0
- package/dist/hydrate/selectors.d.ts +28 -0
- package/dist/hydrate/selectors.d.ts.map +1 -0
- package/dist/hydrate/types.d.ts +19 -0
- package/dist/hydrate/types.d.ts.map +1 -0
- package/dist/hydrate/utils.d.ts +8 -0
- package/dist/hydrate/utils.d.ts.map +1 -0
- package/dist/hydrate-Cr9eaeDK.js +654 -0
- package/dist/index.d.ts +19 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +157 -662
- package/dist/intentConfigStore.d.ts +8 -0
- package/dist/intentConfigStore.d.ts.map +1 -0
- package/dist/intentProtocolApi.d.ts +11 -0
- package/dist/intentProtocolApi.d.ts.map +1 -0
- package/dist/intentProtocolEncoding.d.ts +25 -0
- package/dist/intentProtocolEncoding.d.ts.map +1 -0
- package/dist/intentProtocolResolver.d.ts +28 -0
- package/dist/intentProtocolResolver.d.ts.map +1 -0
- package/dist/intentReceiptPoller.d.ts.map +1 -1
- package/dist/intentValidation.d.ts +5 -0
- package/dist/intentValidation.d.ts.map +1 -0
- package/dist/intents.d.ts.map +1 -1
- package/dist/keymachine/index.d.ts +20 -0
- package/dist/keymachine/index.d.ts.map +1 -1
- package/dist/mutations.d.ts.map +1 -1
- package/dist/offlineRecovery.d.ts +24 -0
- package/dist/offlineRecovery.d.ts.map +1 -0
- package/dist/onramp/MeshConnectFlow.d.ts +9 -0
- package/dist/onramp/MeshConnectFlow.d.ts.map +1 -1
- package/dist/onramp/MeshConnectIframe.d.ts +9 -0
- package/dist/onramp/MeshConnectIframe.d.ts.map +1 -1
- package/dist/onramp/TrailsOnRampProvider.d.ts.map +1 -1
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.d.ts +10 -0
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.d.ts.map +1 -0
- package/dist/onramp/mesh/components/MeshExchangeIcon.d.ts +13 -0
- package/dist/onramp/mesh/components/MeshExchangeIcon.d.ts.map +1 -0
- package/dist/{widget → onramp/mesh}/components/MeshExchangeSelection.d.ts +1 -0
- package/dist/onramp/mesh/components/MeshExchangeSelection.d.ts.map +1 -0
- package/dist/onramp/mesh/components/MeshSessionOptions.d.ts +15 -0
- package/dist/onramp/mesh/components/MeshSessionOptions.d.ts.map +1 -0
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.d.ts +9 -0
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.d.ts.map +1 -0
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.d.ts +11 -0
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.d.ts.map +1 -0
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.d.ts +71 -0
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.d.ts.map +1 -0
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.d.ts +32 -0
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.d.ts.map +1 -0
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.d.ts +19 -0
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.d.ts.map +1 -0
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.d.ts +15 -0
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.d.ts.map +1 -0
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.d.ts +7 -0
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.d.ts.map +1 -0
- package/dist/onramp/meshSessionStorage.d.ts +13 -0
- package/dist/onramp/meshSessionStorage.d.ts.map +1 -0
- package/dist/onramp/meshconnect.d.ts +6 -4
- package/dist/onramp/meshconnect.d.ts.map +1 -1
- package/dist/onramp/trailsOnramp.d.ts +8 -0
- package/dist/onramp/trailsOnramp.d.ts.map +1 -1
- package/dist/onrampClient.d.ts.map +1 -1
- package/dist/prepareSend.d.ts +3 -2
- package/dist/prepareSend.d.ts.map +1 -1
- package/dist/query/intentProtocol.queries.d.ts +32 -0
- package/dist/query/intentProtocol.queries.d.ts.map +1 -0
- package/dist/recover.d.ts +70 -24
- package/dist/recover.d.ts.map +1 -1
- package/dist/src-4HYDQv2T.js +48798 -0
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts +2 -3
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts.map +1 -1
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts +2 -3
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts.map +1 -1
- package/dist/transactionIntent/deposits/standardDeposit.d.ts +2 -5
- package/dist/transactionIntent/deposits/standardDeposit.d.ts.map +1 -1
- package/dist/transactionIntent/handlers/intentHandler.d.ts +4 -4
- package/dist/transactionIntent/handlers/intentHandler.d.ts.map +1 -1
- package/dist/transactionIntent/quote/quoteHelpers.d.ts +2 -2
- package/dist/transactionIntent/quote/quoteHelpers.d.ts.map +1 -1
- package/dist/transactionIntent/types.d.ts +3 -3
- package/dist/transactionIntent/types.d.ts.map +1 -1
- package/dist/transactions.d.ts +1 -0
- package/dist/transactions.d.ts.map +1 -1
- package/dist/umd/trails.min.js +1370 -410
- package/dist/utils/localStorageGc.d.ts +22 -0
- package/dist/utils/localStorageGc.d.ts.map +1 -0
- package/dist/walletUtils.d.ts.map +1 -1
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts.map +1 -1
- package/dist/widget/components/ClassicSwap.d.ts.map +1 -1
- package/dist/widget/components/ConnectedWallets.d.ts +1 -1
- package/dist/widget/components/ConnectedWallets.d.ts.map +1 -1
- package/dist/widget/components/Earn.d.ts +2 -6
- package/dist/widget/components/Earn.d.ts.map +1 -1
- package/dist/widget/components/FeeOption.d.ts +1 -1
- package/dist/widget/components/FeeOption.d.ts.map +1 -1
- package/dist/widget/components/FeeOptions.d.ts +1 -1
- package/dist/widget/components/FeeOptions.d.ts.map +1 -1
- package/dist/widget/components/FiatSelector.d.ts +1 -1
- package/dist/widget/components/FiatSelector.d.ts.map +1 -1
- package/dist/widget/components/FiatSelectorButton.d.ts +1 -1
- package/dist/widget/components/FiatSelectorButton.d.ts.map +1 -1
- package/dist/widget/components/Fund.d.ts +1 -1
- package/dist/widget/components/Fund.d.ts.map +1 -1
- package/dist/widget/components/FundMethods.d.ts.map +1 -1
- package/dist/widget/components/FundingMethodSelectorButton.d.ts +1 -1
- package/dist/widget/components/FundingMethodSelectorButton.d.ts.map +1 -1
- package/dist/widget/components/MeldHistory.d.ts +1 -1
- package/dist/widget/components/MeldHistory.d.ts.map +1 -1
- package/dist/widget/components/MeldTransactionStatus.d.ts +1 -1
- package/dist/widget/components/MeldTransactionStatus.d.ts.map +1 -1
- package/dist/widget/components/MeshExchangeAccountHeader.d.ts +9 -0
- package/dist/widget/components/MeshExchangeAccountHeader.d.ts.map +1 -0
- package/dist/widget/components/OnrampHistoryRow.d.ts +1 -1
- package/dist/widget/components/OnrampHistoryRow.d.ts.map +1 -1
- package/dist/widget/components/OnrampProviderConfirmation.d.ts +1 -1
- package/dist/widget/components/OnrampProviderConfirmation.d.ts.map +1 -1
- package/dist/widget/components/Pay.d.ts.map +1 -1
- package/dist/widget/components/PoolDeposit.d.ts +2 -6
- package/dist/widget/components/PoolDeposit.d.ts.map +1 -1
- package/dist/widget/components/PoolWithdraw.d.ts +2 -2
- package/dist/widget/components/PoolWithdraw.d.ts.map +1 -1
- package/dist/widget/components/PulsatingButton.d.ts +9 -0
- package/dist/widget/components/PulsatingButton.d.ts.map +1 -0
- package/dist/widget/components/Receipt.d.ts +1 -1
- package/dist/widget/components/Receipt.d.ts.map +1 -1
- package/dist/widget/components/RecipientSelectorButton.d.ts.map +1 -1
- package/dist/widget/components/Recipients.d.ts.map +1 -1
- package/dist/widget/components/Swap.d.ts +2 -6
- package/dist/widget/components/Swap.d.ts.map +1 -1
- package/dist/widget/components/TokenList.d.ts +1 -0
- package/dist/widget/components/TokenList.d.ts.map +1 -1
- package/dist/widget/components/TokenSelector.d.ts +1 -2
- package/dist/widget/components/TokenSelector.d.ts.map +1 -1
- package/dist/widget/components/TransactionDetails.d.ts +1 -0
- package/dist/widget/components/TransactionDetails.d.ts.map +1 -1
- package/dist/widget/components/TransactionHistoryItem.d.ts +1 -0
- package/dist/widget/components/TransactionHistoryItem.d.ts.map +1 -1
- package/dist/widget/components/TransferPendingVertical.d.ts +1 -1
- package/dist/widget/components/TransferPendingVertical.d.ts.map +1 -1
- package/dist/widget/components/WalletAccountHeader.d.ts +7 -0
- package/dist/widget/components/WalletAccountHeader.d.ts.map +1 -0
- package/dist/widget/components/WalletConfirmation.d.ts +2 -1
- package/dist/widget/components/WalletConfirmation.d.ts.map +1 -1
- package/dist/widget/components/WalletConnect.d.ts.map +1 -1
- package/dist/widget/components/WidgetProviders.d.ts.map +1 -1
- package/dist/widget/components/Withdraw.d.ts.map +1 -1
- package/dist/widget/index.d.ts +13 -0
- package/dist/widget/index.d.ts.map +1 -1
- package/dist/widget/index.js +16 -8
- package/dist/widget/modes/EarnWidget.d.ts +83 -0
- package/dist/widget/modes/EarnWidget.d.ts.map +1 -0
- package/dist/widget/modes/FundWidget.d.ts +103 -0
- package/dist/widget/modes/FundWidget.d.ts.map +1 -0
- package/dist/widget/modes/PayWidget.d.ts +86 -0
- package/dist/widget/modes/PayWidget.d.ts.map +1 -0
- package/dist/widget/modes/SwapWidget.d.ts +82 -0
- package/dist/widget/modes/SwapWidget.d.ts.map +1 -0
- package/dist/widget/modes/WithdrawWidget.d.ts +71 -0
- package/dist/widget/modes/WithdrawWidget.d.ts.map +1 -0
- package/dist/widget/providers/TrailsProvider.d.ts +3 -0
- package/dist/widget/providers/TrailsProvider.d.ts.map +1 -1
- package/dist/widget/shared/mapSharedProps.d.ts +9 -0
- package/dist/widget/shared/mapSharedProps.d.ts.map +1 -0
- package/dist/widget/shared/methodMap.d.ts +18 -0
- package/dist/widget/shared/methodMap.d.ts.map +1 -0
- package/dist/widget/shared/resolution.d.ts +22 -0
- package/dist/widget/shared/resolution.d.ts.map +1 -0
- package/dist/widget/shared/resolvePaymentSource.d.ts +34 -0
- package/dist/widget/shared/resolvePaymentSource.d.ts.map +1 -0
- package/dist/widget/shared/types.d.ts +94 -0
- package/dist/widget/shared/types.d.ts.map +1 -0
- package/dist/widget/types/commonProps.d.ts +3 -7
- package/dist/widget/types/commonProps.d.ts.map +1 -1
- package/dist/widget/utils/fundMethodSwitchState.d.ts +1 -0
- package/dist/widget/utils/fundMethodSwitchState.d.ts.map +1 -1
- package/dist/widget/utils/viewManagerGuards.d.ts +1 -1
- package/dist/widget/utils/viewManagerGuards.d.ts.map +1 -1
- package/dist/widget/widget.d.ts +21 -16
- package/dist/widget/widget.d.ts.map +1 -1
- package/package.json +17 -23
- package/dist/buffer.d.ts +0 -3
- package/dist/buffer.d.ts.map +0 -1
- package/dist/ccip-CT_An6eM.js +0 -230
- package/dist/index-RfqL5Foz.js +0 -114567
- package/dist/paymasterSend.d.ts +0 -90
- package/dist/paymasterSend.d.ts.map +0 -1
- package/dist/sendUserOp.d.ts +0 -122
- package/dist/sendUserOp.d.ts.map +0 -1
- package/dist/toSimpleSmartAccount.d.ts +0 -95
- package/dist/toSimpleSmartAccount.d.ts.map +0 -1
- package/dist/transactionIntent/utils/erc20Approval.d.ts +0 -34
- package/dist/transactionIntent/utils/erc20Approval.d.ts.map +0 -1
- package/dist/utils/allowance.d.ts +0 -19
- package/dist/utils/allowance.d.ts.map +0 -1
- package/dist/widget/analytics/useWidgetAnalytics.d.ts.map +0 -1
- package/dist/widget/components/FeeBreakdown.d.ts +0 -9
- package/dist/widget/components/FeeBreakdown.d.ts.map +0 -1
- package/dist/widget/components/HideBalances.d.ts +0 -4
- package/dist/widget/components/HideBalances.d.ts.map +0 -1
- package/dist/widget/components/MeshExchangeSelection.d.ts.map +0 -1
- package/dist/widget/components/OnrampDeposit.d.ts +0 -10
- package/dist/widget/components/OnrampDeposit.d.ts.map +0 -1
- package/dist/widget/components/SwapSettings.d.ts +0 -4
- package/dist/widget/components/SwapSettings.d.ts.map +0 -1
- package/dist/widget/components/TruncatedAddress.d.ts +0 -12
- package/dist/widget/components/TruncatedAddress.d.ts.map +0 -1
- package/dist/widget/components/WalletImage.d.ts +0 -8
- package/dist/widget/components/WalletImage.d.ts.map +0 -1
- package/dist/widget/css/compiled.css +0 -26
- package/dist/widget/css/index.css +0 -686
- package/dist/widget/hooks/useAddressWalletIcon.d.ts.map +0 -1
- package/dist/widget/hooks/useAmountUsd.d.ts.map +0 -1
- package/dist/widget/hooks/useBalanceVisible.d.ts.map +0 -1
- package/dist/widget/hooks/useChainFilter.d.ts.map +0 -1
- package/dist/widget/hooks/useCheckout.d.ts.map +0 -1
- package/dist/widget/hooks/useClickTracking.d.ts.map +0 -1
- package/dist/widget/hooks/useCombinedHistory.d.ts.map +0 -1
- package/dist/widget/hooks/useConnector.d.ts.map +0 -1
- package/dist/widget/hooks/useCustomTokenSearch.d.ts.map +0 -1
- package/dist/widget/hooks/useDebounce.d.ts.map +0 -1
- package/dist/widget/hooks/useDebugScreens.d.ts.map +0 -1
- package/dist/widget/hooks/useDefaultDestinationToken.d.ts.map +0 -1
- package/dist/widget/hooks/useDefaultOriginToken.d.ts.map +0 -1
- package/dist/widget/hooks/useDepositMonitor.d.ts.map +0 -1
- package/dist/widget/hooks/useDestinationSelectedToken.d.ts.map +0 -1
- package/dist/widget/hooks/useDisplayCurrencyPreference.d.ts.map +0 -1
- package/dist/widget/hooks/useEarnPool.d.ts.map +0 -1
- package/dist/widget/hooks/useExecutingIntentsCount.d.ts.map +0 -1
- package/dist/widget/hooks/useExternalFundingReceiptSync.d.ts.map +0 -1
- package/dist/widget/hooks/useFiatOnRampCurrencies.d.ts.map +0 -1
- package/dist/widget/hooks/useFiatSelectedCurrency.d.ts.map +0 -1
- package/dist/widget/hooks/useGetIntent.d.ts.map +0 -1
- package/dist/widget/hooks/useIntentReceiptBalances.d.ts.map +0 -1
- package/dist/widget/hooks/useIntentTransactionHistory.d.ts.map +0 -1
- package/dist/widget/hooks/useIsConnectedWalletSmartContract.d.ts +0 -7
- package/dist/widget/hooks/useIsConnectedWalletSmartContract.d.ts.map +0 -1
- package/dist/widget/hooks/useIsMobile.d.ts.map +0 -1
- package/dist/widget/hooks/useIsSequenceWallet.d.ts.map +0 -1
- package/dist/widget/hooks/useLocalePreference.d.ts.map +0 -1
- package/dist/widget/hooks/useMeldTransactionHistory.d.ts.map +0 -1
- package/dist/widget/hooks/useMeldTransactionStatus.d.ts.map +0 -1
- package/dist/widget/hooks/useOnRampCountryDefaults.d.ts.map +0 -1
- package/dist/widget/hooks/useOnRampPaymentMethods.d.ts.map +0 -1
- package/dist/widget/hooks/useOnRampProviderWidget.d.ts.map +0 -1
- package/dist/widget/hooks/useOnRampQuote.d.ts.map +0 -1
- package/dist/widget/hooks/useOnRampTransactionStatus.d.ts.map +0 -1
- package/dist/widget/hooks/useOriginSelectedToken.d.ts.map +0 -1
- package/dist/widget/hooks/usePayMessage.d.ts.map +0 -1
- package/dist/widget/hooks/usePriceImpactWarning.d.ts.map +0 -1
- package/dist/widget/hooks/useQuote.d.ts +0 -378
- package/dist/widget/hooks/useQuote.d.ts.map +0 -1
- package/dist/widget/hooks/useRecentTokens.d.ts.map +0 -1
- package/dist/widget/hooks/useRecipients.d.ts.map +0 -1
- package/dist/widget/hooks/useScreenTracking.d.ts +0 -2
- package/dist/widget/hooks/useScreenTracking.d.ts.map +0 -1
- package/dist/widget/hooks/useSelectedFeeOption.d.ts.map +0 -1
- package/dist/widget/hooks/useSelectedFundMethod.d.ts.map +0 -1
- package/dist/widget/hooks/useSelectedRecipient.d.ts.map +0 -1
- package/dist/widget/hooks/useSendForm.d.ts.map +0 -1
- package/dist/widget/hooks/useSwapAmount.d.ts.map +0 -1
- package/dist/widget/hooks/useSwapState.d.ts.map +0 -1
- package/dist/widget/hooks/useTargetAmount.d.ts.map +0 -1
- package/dist/widget/hooks/useTheme.d.ts.map +0 -1
- package/dist/widget/hooks/useTokenList.d.ts.map +0 -1
- package/dist/widget/hooks/useTrailsSendTransaction.d.ts.map +0 -1
- package/dist/widget/hooks/useViewManager.d.ts.map +0 -1
- package/dist/widget/hooks/useWalletConnectUri.d.ts +0 -11
- package/dist/widget/hooks/useWalletConnectUri.d.ts.map +0 -1
- package/dist/widget/hooks/useWalletConnectionContext.d.ts.map +0 -1
- package/dist/widget/hooks/useWidgetProps.d.ts.map +0 -1
- package/dist/widget/types.d.ts +0 -44
- package/dist/widget/types.d.ts.map +0 -1
- package/dist/widget/utils/historyUtils.d.ts +0 -18
- package/dist/widget/utils/historyUtils.d.ts.map +0 -1
- package/src/abi.ts +0 -38
- package/src/abis/erc20.ts +0 -60
- package/src/abis/trailsHydrate.ts +0 -185
- package/src/abis/trailsRouter.ts +0 -121
- package/src/abis/trailsSweep.ts +0 -32
- package/src/abortController.ts +0 -35
- package/src/analytics.ts +0 -2029
- package/src/buffer.ts +0 -10
- package/src/chainSwitch.ts +0 -95
- package/src/chains.ts +0 -570
- package/src/config.ts +0 -118
- package/src/constants.ts +0 -239
- package/src/contractUtils.ts +0 -46
- package/src/cssUtils.ts +0 -5
- package/src/customChains.ts +0 -24
- package/src/customTokens.ts +0 -168
- package/src/decoders.ts +0 -365
- package/src/ens.ts +0 -74
- package/src/error.ts +0 -268
- package/src/estimate.ts +0 -480
- package/src/explorer.ts +0 -38
- package/src/fees.ts +0 -362
- package/src/gasless.ts +0 -638
- package/src/index.ts +0 -205
- package/src/indexerClient.ts +0 -118
- package/src/intentReceiptMonitor.ts +0 -99
- package/src/intentReceiptPoller.ts +0 -327
- package/src/intents.ts +0 -1133
- package/src/keyMachineClient.ts +0 -29
- package/src/keymachine/index.ts +0 -175
- package/src/keymachine/key-machine.gen.ts +0 -993
- package/src/localeUtils.ts +0 -244
- package/src/logger/index.ts +0 -95
- package/src/logger/useSyncLoggerDebug.ts +0 -11
- package/src/logger.ts +0 -1
- package/src/meld/components/MeldCountriesList.tsx +0 -237
- package/src/meld/components/MeldFundMethods.tsx +0 -265
- package/src/meld/components/MeldProvidersList.tsx +0 -187
- package/src/meld/components/MeldTokensList.tsx +0 -321
- package/src/meld/components/SimpleHeader.tsx +0 -35
- package/src/meld/utils/meld.ts +0 -77
- package/src/mutations.ts +0 -166
- package/src/onramp/MeshConnectFlow.tsx +0 -86
- package/src/onramp/MeshConnectIframe.tsx +0 -661
- package/src/onramp/SendFromExchangeButton.tsx +0 -81
- package/src/onramp/TrailsOnRampProvider.tsx +0 -59
- package/src/onramp/index.ts +0 -31
- package/src/onramp/meshconnect.ts +0 -277
- package/src/onramp/trailsOnramp.tsx +0 -130
- package/src/onramp-client/index.ts +0 -52
- package/src/onrampClient.ts +0 -46
- package/src/paymasterSend.ts +0 -521
- package/src/placeholder.ts +0 -92
- package/src/poolUtils.ts +0 -222
- package/src/pools.ts +0 -120
- package/src/prepareSend.ts +0 -553
- package/src/query/balance.fetchers.ts +0 -753
- package/src/query/balance.hooks.ts +0 -357
- package/src/query/balance.queries.ts +0 -307
- package/src/query/chains.hooks.ts +0 -45
- package/src/query/chains.queries.ts +0 -17
- package/src/query/client.ts +0 -20
- package/src/query/fiat.fetchers.ts +0 -33
- package/src/query/fiat.hooks.ts +0 -71
- package/src/query/fiat.queries.ts +0 -67
- package/src/query/geo.fetchers.ts +0 -100
- package/src/query/geo.hooks.ts +0 -16
- package/src/query/geo.queries.ts +0 -36
- package/src/query/helpers.ts +0 -81
- package/src/query/meld.fetchers.ts +0 -97
- package/src/query/meld.hooks.ts +0 -18
- package/src/query/meld.queries.ts +0 -184
- package/src/query/persister.ts +0 -11
- package/src/query/price.fetchers.ts +0 -53
- package/src/query/price.hooks.ts +0 -46
- package/src/query/price.queries.ts +0 -364
- package/src/query/tokenList.queries.ts +0 -118
- package/src/queryParams.ts +0 -100
- package/src/recover.ts +0 -1728
- package/src/sendUserOp.ts +0 -512
- package/src/theme.ts +0 -2
- package/src/toSimpleSmartAccount.ts +0 -567
- package/src/toast.ts +0 -110
- package/src/tokens.ts +0 -1862
- package/src/trailsClient.ts +0 -40
- package/src/transactionIntent/constants.ts +0 -15
- package/src/transactionIntent/deposits/depositOrchestrator.ts +0 -243
- package/src/transactionIntent/deposits/gaslessDeposit.ts +0 -705
- package/src/transactionIntent/deposits/index.ts +0 -3
- package/src/transactionIntent/deposits/standardDeposit.ts +0 -590
- package/src/transactionIntent/execution/index.ts +0 -1
- package/src/transactionIntent/execution/transactionState.ts +0 -38
- package/src/transactionIntent/handlers/index.ts +0 -1
- package/src/transactionIntent/handlers/intentHandler.ts +0 -1613
- package/src/transactionIntent/helpers/index.ts +0 -1
- package/src/transactionIntent/helpers/transactionStateHelpers.ts +0 -440
- package/src/transactionIntent/index.ts +0 -10
- package/src/transactionIntent/quote/feeExtractors.ts +0 -61
- package/src/transactionIntent/quote/index.ts +0 -3
- package/src/transactionIntent/quote/normalizeQuote.ts +0 -559
- package/src/transactionIntent/quote/quoteHelpers.ts +0 -117
- package/src/transactionIntent/types.ts +0 -241
- package/src/transactionIntent/utils/balanceChecker.ts +0 -103
- package/src/transactionIntent/utils/erc20Approval.ts +0 -171
- package/src/transactionIntent/utils/index.ts +0 -2
- package/src/transactionIntent/utils/resilientDepositTracker.ts +0 -171
- package/src/transactionIntent/utils/testnetHelpers.ts +0 -5
- package/src/transactionIntent/validators.ts +0 -27
- package/src/transactions.ts +0 -429
- package/src/types.d.ts +0 -16
- package/src/umd.tsx +0 -33
- package/src/utils/address.ts +0 -78
- package/src/utils/allowance.ts +0 -47
- package/src/utils/fiat.ts +0 -32
- package/src/utils/format.ts +0 -625
- package/src/utils/passthrough.ts +0 -93
- package/src/utils/time.ts +0 -118
- package/src/utils/validation.ts +0 -104
- package/src/utils.ts +0 -112
- package/src/version.ts +0 -8
- package/src/vite-env.d.ts +0 -4
- package/src/walletUtils.ts +0 -293
- package/src/wallets.ts +0 -544
- package/src/widget/analytics/useWidgetAnalytics.ts +0 -56
- package/src/widget/assets/Exchange-icon-black.svg +0 -5
- package/src/widget/assets/MetaMask-icon-fox-with-margins.svg +0 -31
- package/src/widget/assets/MetaMask-icon-fox.svg +0 -26
- package/src/widget/assets/MetaMask-logo-black.svg +0 -3
- package/src/widget/assets/MetaMask-logo-white.svg +0 -16
- package/src/widget/assets/Trails-logo-black.svg +0 -13
- package/src/widget/assets/Trails-logo-white.svg +0 -13
- package/src/widget/assets/WalletChange-black.svg +0 -5
- package/src/widget/assets/WalletConnect-logo-black.svg +0 -14
- package/src/widget/assets/WalletConnect-logo-blue.svg +0 -14
- package/src/widget/assets/WalletConnect-logo-white.svg +0 -14
- package/src/widget/assets/WalletConnect-logo.svg +0 -40
- package/src/widget/assets/aave.svg +0 -14
- package/src/widget/assets/morpho.svg +0 -14
- package/src/widget/compiled.css +0 -26
- package/src/widget/components/AccountActionsDropdown.tsx +0 -31
- package/src/widget/components/AccountIntentTransactionHistory.tsx +0 -756
- package/src/widget/components/AccountIntentTransactionHistoryButton.tsx +0 -34
- package/src/widget/components/AccountSettings.tsx +0 -168
- package/src/widget/components/AddressOrEnsName.tsx +0 -24
- package/src/widget/components/AddressWalletIcon.tsx +0 -49
- package/src/widget/components/AllChainsIcon.tsx +0 -54
- package/src/widget/components/ChainFilterDropdown.tsx +0 -220
- package/src/widget/components/ChainImage.tsx +0 -40
- package/src/widget/components/ChainList.tsx +0 -158
- package/src/widget/components/ClassicSwap.tsx +0 -1761
- package/src/widget/components/ConfigDisplay.tsx +0 -158
- package/src/widget/components/ConnectWallet.tsx +0 -566
- package/src/widget/components/ConnectedWallets.tsx +0 -414
- package/src/widget/components/CopyButton.tsx +0 -108
- package/src/widget/components/CountryFilterDropdown.tsx +0 -179
- package/src/widget/components/DebugMenu.tsx +0 -50
- package/src/widget/components/DebugScreensList.tsx +0 -70
- package/src/widget/components/DebugToast.tsx +0 -63
- package/src/widget/components/DepositTracker.tsx +0 -326
- package/src/widget/components/DirectTransfer.tsx +0 -305
- package/src/widget/components/Disconnect.tsx +0 -68
- package/src/widget/components/DynamicInputStyles.tsx +0 -121
- package/src/widget/components/DynamicSizeInputField.tsx +0 -245
- package/src/widget/components/ENSAvatar.tsx +0 -33
- package/src/widget/components/Earn.tsx +0 -160
- package/src/widget/components/EarnPools.tsx +0 -417
- package/src/widget/components/EarnPoolsFilters.tsx +0 -165
- package/src/widget/components/ErrorAnimationIcon.tsx +0 -130
- package/src/widget/components/ErrorDisplay.tsx +0 -152
- package/src/widget/components/ExecutingIntentsBadge.tsx +0 -24
- package/src/widget/components/ExecutionStatusBadge.tsx +0 -53
- package/src/widget/components/FeeBreakdown.tsx +0 -155
- package/src/widget/components/FeeOption.tsx +0 -170
- package/src/widget/components/FeeOptions.tsx +0 -247
- package/src/widget/components/FiatSelector.tsx +0 -308
- package/src/widget/components/FiatSelectorButton.tsx +0 -68
- package/src/widget/components/Footer.tsx +0 -67
- package/src/widget/components/Fund.tsx +0 -2463
- package/src/widget/components/FundMethods.tsx +0 -423
- package/src/widget/components/FundWalletSelection.tsx +0 -60
- package/src/widget/components/FundingMethodSelectorButton.tsx +0 -106
- package/src/widget/components/GreenCheckAnimation.tsx +0 -119
- package/src/widget/components/HideBalances.tsx +0 -24
- package/src/widget/components/HighPriceImpactBlock.tsx +0 -44
- package/src/widget/components/HookModalContent.tsx +0 -377
- package/src/widget/components/Identicon.tsx +0 -228
- package/src/widget/components/LoadingSpinner.tsx +0 -9
- package/src/widget/components/MeldForm.tsx +0 -780
- package/src/widget/components/MeldHistory.tsx +0 -433
- package/src/widget/components/MeldStepsFlow.tsx +0 -1651
- package/src/widget/components/MeldTransactionStatus.tsx +0 -255
- package/src/widget/components/MeshExchangeSelection.tsx +0 -218
- package/src/widget/components/Modal.tsx +0 -86
- package/src/widget/components/OFTProgressBar.tsx +0 -89
- package/src/widget/components/OnRampProviderSelector.tsx +0 -263
- package/src/widget/components/OnrampDeposit.tsx +0 -122
- package/src/widget/components/OnrampErrorScreen.tsx +0 -163
- package/src/widget/components/OnrampHistoryRow.tsx +0 -321
- package/src/widget/components/OnrampPaymentMethods.tsx +0 -81
- package/src/widget/components/OnrampProviderConfirmation.tsx +0 -1060
- package/src/widget/components/OriginSelectionAmount.tsx +0 -144
- package/src/widget/components/OriginTransferInformation.tsx +0 -59
- package/src/widget/components/Pay.tsx +0 -1165
- package/src/widget/components/PaymentMethods.tsx +0 -198
- package/src/widget/components/PercentageMaxButtons.tsx +0 -112
- package/src/widget/components/PoolDeposit.tsx +0 -642
- package/src/widget/components/PoolWithdraw.tsx +0 -761
- package/src/widget/components/PriceImpactWarning.tsx +0 -87
- package/src/widget/components/QRCodeOptions.tsx +0 -65
- package/src/widget/components/QRCodeWalletSelect.tsx +0 -80
- package/src/widget/components/QrCode.tsx +0 -216
- package/src/widget/components/QuoteDetails.tsx +0 -1275
- package/src/widget/components/Receipt.tsx +0 -673
- package/src/widget/components/ReceiptRecoverableFunds.tsx +0 -135
- package/src/widget/components/RecentTokens.tsx +0 -66
- package/src/widget/components/RecipientSelectorButton.tsx +0 -50
- package/src/widget/components/Recipients.tsx +0 -413
- package/src/widget/components/RefundWarning.tsx +0 -61
- package/src/widget/components/RequiredPropsError.tsx +0 -33
- package/src/widget/components/ScreenHeader.tsx +0 -123
- package/src/widget/components/SearchInputField.tsx +0 -99
- package/src/widget/components/SessionTimeoutScreen.tsx +0 -103
- package/src/widget/components/ShadowPortal.tsx +0 -99
- package/src/widget/components/ShadowRootContext.tsx +0 -17
- package/src/widget/components/SimpleRecipientInputScreen.tsx +0 -91
- package/src/widget/components/SlippageToleranceSettings.tsx +0 -279
- package/src/widget/components/Swap.tsx +0 -50
- package/src/widget/components/SwapDisplay.tsx +0 -68
- package/src/widget/components/SwapSettings.tsx +0 -52
- package/src/widget/components/ThemeProvider.tsx +0 -115
- package/src/widget/components/ThemeSyncer.tsx +0 -47
- package/src/widget/components/Toast.tsx +0 -336
- package/src/widget/components/TokenDisplayNonSelectable.tsx +0 -40
- package/src/widget/components/TokenImage.tsx +0 -156
- package/src/widget/components/TokenList.tsx +0 -107
- package/src/widget/components/TokenSelector.tsx +0 -807
- package/src/widget/components/TokenSelectorButton.tsx +0 -123
- package/src/widget/components/TokenSkeleton.tsx +0 -53
- package/src/widget/components/Tooltip.tsx +0 -64
- package/src/widget/components/TrailsHookModal.tsx +0 -107
- package/src/widget/components/TransactionDetails.tsx +0 -534
- package/src/widget/components/TransactionHistoryItem.tsx +0 -767
- package/src/widget/components/TransferPendingVertical.tsx +0 -591
- package/src/widget/components/TruncatedAddress.tsx +0 -68
- package/src/widget/components/TruncatedTransactionHash.tsx +0 -74
- package/src/widget/components/UserPreferences.tsx +0 -570
- package/src/widget/components/WaasFeeOptions.tsx +0 -588
- package/src/widget/components/WalletConfirmation.tsx +0 -220
- package/src/widget/components/WalletConnect.tsx +0 -348
- package/src/widget/components/WalletConnectionPending.tsx +0 -178
- package/src/widget/components/WalletImage.tsx +0 -52
- package/src/widget/components/WalletList.tsx +0 -125
- package/src/widget/components/WidgetProviders.tsx +0 -82
- package/src/widget/components/Withdraw.tsx +0 -1106
- package/src/widget/components/YellowWarningAnimation.tsx +0 -146
- package/src/widget/hooks/useAddressWalletIcon.ts +0 -55
- package/src/widget/hooks/useAmountUsd.ts +0 -44
- package/src/widget/hooks/useBalanceVisible.tsx +0 -95
- package/src/widget/hooks/useChainFilter.tsx +0 -56
- package/src/widget/hooks/useCheckout.ts +0 -361
- package/src/widget/hooks/useClickTracking.ts +0 -74
- package/src/widget/hooks/useCombinedHistory.ts +0 -420
- package/src/widget/hooks/useConnector.tsx +0 -24
- package/src/widget/hooks/useCustomTokenSearch.tsx +0 -369
- package/src/widget/hooks/useDebounce.ts +0 -25
- package/src/widget/hooks/useDebugScreens.ts +0 -600
- package/src/widget/hooks/useDefaultDestinationToken.tsx +0 -179
- package/src/widget/hooks/useDefaultOriginToken.tsx +0 -407
- package/src/widget/hooks/useDepositMonitor.ts +0 -118
- package/src/widget/hooks/useDestinationSelectedToken.tsx +0 -310
- package/src/widget/hooks/useDisplayCurrencyPreference.tsx +0 -145
- package/src/widget/hooks/useEarnPool.tsx +0 -36
- package/src/widget/hooks/useExecutingIntentsCount.ts +0 -78
- package/src/widget/hooks/useExternalFundingReceiptSync.ts +0 -79
- package/src/widget/hooks/useFiatOnRampCurrencies.ts +0 -46
- package/src/widget/hooks/useFiatSelectedCurrency.tsx +0 -123
- package/src/widget/hooks/useGetIntent.ts +0 -54
- package/src/widget/hooks/useIntentReceiptBalances.ts +0 -141
- package/src/widget/hooks/useIntentTransactionHistory.ts +0 -790
- package/src/widget/hooks/useIsConnectedWalletSmartContract.ts +0 -43
- package/src/widget/hooks/useIsMobile.tsx +0 -50
- package/src/widget/hooks/useIsSequenceWallet.ts +0 -17
- package/src/widget/hooks/useLocalePreference.tsx +0 -187
- package/src/widget/hooks/useMeldTransactionHistory.ts +0 -184
- package/src/widget/hooks/useMeldTransactionStatus.ts +0 -707
- package/src/widget/hooks/useOnRampCountryDefaults.ts +0 -57
- package/src/widget/hooks/useOnRampPaymentMethods.ts +0 -72
- package/src/widget/hooks/useOnRampProviderWidget.ts +0 -184
- package/src/widget/hooks/useOnRampQuote.ts +0 -340
- package/src/widget/hooks/useOnRampTransactionStatus.ts +0 -196
- package/src/widget/hooks/useOriginSelectedToken.tsx +0 -253
- package/src/widget/hooks/usePayMessage.tsx +0 -496
- package/src/widget/hooks/usePriceImpactWarning.ts +0 -17
- package/src/widget/hooks/useQuote.ts +0 -1239
- package/src/widget/hooks/useRecentTokens.ts +0 -159
- package/src/widget/hooks/useRecipients.ts +0 -167
- package/src/widget/hooks/useScreenTracking.ts +0 -14
- package/src/widget/hooks/useSelectedFeeOption.tsx +0 -323
- package/src/widget/hooks/useSelectedFundMethod.tsx +0 -93
- package/src/widget/hooks/useSelectedRecipient.tsx +0 -75
- package/src/widget/hooks/useSendForm.ts +0 -1389
- package/src/widget/hooks/useSwapAmount.tsx +0 -50
- package/src/widget/hooks/useSwapState.tsx +0 -121
- package/src/widget/hooks/useTargetAmount.ts +0 -26
- package/src/widget/hooks/useTheme.tsx +0 -80
- package/src/widget/hooks/useTokenList.ts +0 -1168
- package/src/widget/hooks/useTrailsSendTransaction.ts +0 -987
- package/src/widget/hooks/useViewManager.tsx +0 -506
- package/src/widget/hooks/useWalletConnectUri.tsx +0 -307
- package/src/widget/hooks/useWalletConnectionContext.tsx +0 -128
- package/src/widget/hooks/useWidgetProps.tsx +0 -33
- package/src/widget/index.css +0 -686
- package/src/widget/index.tsx +0 -28
- package/src/widget/providers/TrailsModalProvider.tsx +0 -238
- package/src/widget/providers/TrailsProvider.tsx +0 -155
- package/src/widget/providers/UserActivityProvider.tsx +0 -78
- package/src/widget/providers/WidgetProviderTree.tsx +0 -90
- package/src/widget/styles.ts +0 -26
- package/src/widget/types/analytics.ts +0 -22
- package/src/widget/types/commonProps.ts +0 -56
- package/src/widget/types/svg.d.ts +0 -8
- package/src/widget/types.ts +0 -51
- package/src/widget/utils/countryUtils.ts +0 -89
- package/src/widget/utils/createWagmiConfig.ts +0 -43
- package/src/widget/utils/forexRateStore.ts +0 -120
- package/src/widget/utils/fundMethodSwitchState.ts +0 -27
- package/src/widget/utils/historyFilters.ts +0 -157
- package/src/widget/utils/historyUtils.ts +0 -101
- package/src/widget/utils/localeStore.ts +0 -68
- package/src/widget/utils/meldProviderUtils.ts +0 -26
- package/src/widget/utils/meshSupportedTokens.ts +0 -28
- package/src/widget/utils/onrampConfig.ts +0 -15
- package/src/widget/utils/statusLabel.ts +0 -3
- package/src/widget/utils/tokens.ts +0 -138
- package/src/widget/utils/trailsOnrampConfig.ts +0 -39
- package/src/widget/utils/transactionFailure.ts +0 -52
- package/src/widget/utils/viewManagerGuards.ts +0 -49
- package/src/widget/utils/windowUtils.ts +0 -138
- package/src/widget/widget.tsx +0 -3400
- /package/dist/{widget/hooks → hooks}/useAddressWalletIcon.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useAmountUsd.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useBalanceVisible.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useChainFilter.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useClickTracking.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useConnector.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useDebounce.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useDepositMonitor.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useDisplayCurrencyPreference.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useExecutingIntentsCount.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useFiatSelectedCurrency.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useGetIntent.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useIsMobile.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useIsSequenceWallet.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useLocalePreference.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useMeldTransactionHistory.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useMeldTransactionStatus.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useOnRampCountryDefaults.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/usePayMessage.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/usePriceImpactWarning.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useRecipients.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useSelectedFeeOption.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useSelectedRecipient.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useSwapAmount.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useTargetAmount.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useTheme.d.ts +0 -0
- /package/dist/{widget/hooks → hooks}/useWalletConnectionContext.d.ts +0 -0
package/src/wallets.ts
DELETED
|
@@ -1,544 +0,0 @@
|
|
|
1
|
-
import { sequenceWallet } from "@0xsequence/connect"
|
|
2
|
-
import {
|
|
3
|
-
getWalletIcon,
|
|
4
|
-
getWalletRegistry,
|
|
5
|
-
wagmiConnectorToWalletId,
|
|
6
|
-
type WalletRegistryEntry,
|
|
7
|
-
} from "@0xtrails/wallet-registry"
|
|
8
|
-
import React from "react"
|
|
9
|
-
import {
|
|
10
|
-
useConnectors as useWagmiConnectors,
|
|
11
|
-
type Connector as WagmiConnector,
|
|
12
|
-
type CreateConnectorFn,
|
|
13
|
-
} from "wagmi"
|
|
14
|
-
import type { EIP1193Provider } from "viem"
|
|
15
|
-
import {
|
|
16
|
-
baseAccount,
|
|
17
|
-
gemini,
|
|
18
|
-
injected,
|
|
19
|
-
safe,
|
|
20
|
-
walletConnect,
|
|
21
|
-
} from "wagmi/connectors"
|
|
22
|
-
import { getConfig } from "./config.js"
|
|
23
|
-
import {
|
|
24
|
-
DEFAULT_WALLETCONNECT_PROJECT_ID,
|
|
25
|
-
PROD_TRAILS_API_URL,
|
|
26
|
-
} from "./constants.js"
|
|
27
|
-
import { useTrails } from "./widget/providers/TrailsProvider.js"
|
|
28
|
-
|
|
29
|
-
type ConfigConnector = CreateConnectorFn &
|
|
30
|
-
Partial<
|
|
31
|
-
Pick<
|
|
32
|
-
WagmiConnector,
|
|
33
|
-
| "connect"
|
|
34
|
-
| "disconnect"
|
|
35
|
-
| "getAccounts"
|
|
36
|
-
| "icon"
|
|
37
|
-
| "id"
|
|
38
|
-
| "name"
|
|
39
|
-
| "rdns"
|
|
40
|
-
| "type"
|
|
41
|
-
| "uid"
|
|
42
|
-
>
|
|
43
|
-
>
|
|
44
|
-
|
|
45
|
-
export type WalletConnector = WagmiConnector | ConfigConnector
|
|
46
|
-
|
|
47
|
-
export interface WalletConfig extends WalletRegistryEntry {
|
|
48
|
-
connector?: ConfigConnector
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface WalletOption extends WalletRegistryEntry {
|
|
52
|
-
connector: WalletConnector
|
|
53
|
-
source: "config" | "wagmi"
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
interface InternalConnectors {
|
|
57
|
-
injected: ConfigConnector
|
|
58
|
-
walletconnect: ConfigConnector
|
|
59
|
-
safe: ConfigConnector
|
|
60
|
-
baseAccount: ConfigConnector
|
|
61
|
-
gemini: ConfigConnector
|
|
62
|
-
trust: ConfigConnector
|
|
63
|
-
phantom: ConfigConnector
|
|
64
|
-
okx: ConfigConnector
|
|
65
|
-
zerion: ConfigConnector
|
|
66
|
-
ambire: ConfigConnector
|
|
67
|
-
sequence: ConfigConnector
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// WalletConnect connector singleton to avoid multiple Core initializations.
|
|
71
|
-
// Lazy-initialized to prevent module-level side effects — importing this module
|
|
72
|
-
// should NOT create a WalletConnect connector until one is actually needed.
|
|
73
|
-
// This avoids conflicts with apps that bring their own WalletConnect setup
|
|
74
|
-
// (e.g. Reown AppKit) when using hooks-only via TrailsProvider.
|
|
75
|
-
let wcConnectorSingleton: ConfigConnector | null = null
|
|
76
|
-
export function getWalletConnectConnector(): ConfigConnector {
|
|
77
|
-
if (!wcConnectorSingleton) {
|
|
78
|
-
wcConnectorSingleton = walletConnect({
|
|
79
|
-
projectId:
|
|
80
|
-
getConfig("walletConnectProjectId") || DEFAULT_WALLETCONNECT_PROJECT_ID,
|
|
81
|
-
showQrModal: false,
|
|
82
|
-
})
|
|
83
|
-
}
|
|
84
|
-
return wcConnectorSingleton
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function isInIframe() {
|
|
88
|
-
if (typeof window === "undefined") return false
|
|
89
|
-
if (window.parent === window) {
|
|
90
|
-
return false
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
return true
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function safeProviderOrWalletConnect() {
|
|
97
|
-
if (isInIframe()) {
|
|
98
|
-
return safe()
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return getWalletConnectConnector()
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function isRecord(value: unknown): value is Record<string, unknown> {
|
|
105
|
-
return typeof value === "object" && value !== null
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// Selector used to pick a provider from window.ethereum (or its providers array).
|
|
109
|
-
type ProviderSelector = (provider: Record<string, unknown>) => boolean
|
|
110
|
-
|
|
111
|
-
function getWindowValue(
|
|
112
|
-
windowRecord: Record<string, unknown>,
|
|
113
|
-
identifier: string | string[],
|
|
114
|
-
): unknown {
|
|
115
|
-
if (!Array.isArray(identifier)) {
|
|
116
|
-
return windowRecord[identifier]
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
let current: unknown = windowRecord
|
|
120
|
-
for (const key of identifier) {
|
|
121
|
-
if (!isRecord(current)) return undefined
|
|
122
|
-
current = current[key]
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return current
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
function findInjectedProvider(
|
|
129
|
-
windowRecord: Record<string, unknown>,
|
|
130
|
-
selector: ProviderSelector,
|
|
131
|
-
): EIP1193Provider | undefined {
|
|
132
|
-
const ethereum = windowRecord.ethereum
|
|
133
|
-
const providers = isRecord(ethereum) ? ethereum.providers : undefined
|
|
134
|
-
const candidates: unknown[] = []
|
|
135
|
-
|
|
136
|
-
if (Array.isArray(providers)) {
|
|
137
|
-
candidates.push(...providers)
|
|
138
|
-
} else if (ethereum) {
|
|
139
|
-
candidates.push(ethereum)
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
for (const candidate of candidates) {
|
|
143
|
-
if (isRecord(candidate) && selector(candidate)) {
|
|
144
|
-
return candidate as EIP1193Provider
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
return undefined
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// Resolve a provider using either an injected selector or a window path.
|
|
152
|
-
function resolveProvider(
|
|
153
|
-
windowRecord: Record<string, unknown>,
|
|
154
|
-
identifier: string | string[] | ProviderSelector,
|
|
155
|
-
): EIP1193Provider | undefined {
|
|
156
|
-
if (typeof identifier === "function") {
|
|
157
|
-
return findInjectedProvider(windowRecord, identifier)
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
const candidate = getWindowValue(windowRecord, identifier)
|
|
161
|
-
if (!isRecord(candidate)) return undefined
|
|
162
|
-
return candidate as EIP1193Provider
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
function windowProviderOrWalletConnect(
|
|
166
|
-
walletId: string,
|
|
167
|
-
windowObjectIdentifier: string | string[] | ProviderSelector,
|
|
168
|
-
name: string,
|
|
169
|
-
): ConfigConnector {
|
|
170
|
-
if (typeof window === "undefined") return getWalletConnectConnector()
|
|
171
|
-
|
|
172
|
-
const windowRecord = window as unknown as Record<string, unknown>
|
|
173
|
-
|
|
174
|
-
// Selector checks window.ethereum/providers; paths read from window.*
|
|
175
|
-
const provider = resolveProvider(windowRecord, windowObjectIdentifier)
|
|
176
|
-
if (!provider) return getWalletConnectConnector()
|
|
177
|
-
|
|
178
|
-
return injected({
|
|
179
|
-
target() {
|
|
180
|
-
return {
|
|
181
|
-
id: walletId,
|
|
182
|
-
name: name || walletId,
|
|
183
|
-
provider: provider,
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
})
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Internal function to get connectors (for use outside React components)
|
|
191
|
-
* Exported for use in widget.tsx where hooks can't be used in useMemo
|
|
192
|
-
*/
|
|
193
|
-
|
|
194
|
-
// Cache connectors to prevent recreation on every call
|
|
195
|
-
const connectorsCache = new Map<string, InternalConnectors>()
|
|
196
|
-
|
|
197
|
-
function createInternalConnectors(
|
|
198
|
-
projectAccessKey?: string,
|
|
199
|
-
trailsApiUrl?: string,
|
|
200
|
-
): InternalConnectors {
|
|
201
|
-
const walletConnectConnector = getWalletConnectConnector()
|
|
202
|
-
const walletRegistry = getWalletRegistry()
|
|
203
|
-
|
|
204
|
-
// Create base connectors
|
|
205
|
-
const injectedConnector = injected()
|
|
206
|
-
const baseAccountConnector: ConfigConnector = baseAccount()
|
|
207
|
-
const geminiConnector: ConfigConnector = gemini()
|
|
208
|
-
const safeConnector: ConfigConnector = safeProviderOrWalletConnect()
|
|
209
|
-
|
|
210
|
-
// Create wallet-specific connectors
|
|
211
|
-
// Note: MetaMask and Rainbow removed - they support EIP-6963 discovery
|
|
212
|
-
const trustConnector = windowProviderOrWalletConnect(
|
|
213
|
-
"trustwallet",
|
|
214
|
-
"trustwallet",
|
|
215
|
-
walletRegistry.trust.name,
|
|
216
|
-
)
|
|
217
|
-
const phantomConnector = windowProviderOrWalletConnect(
|
|
218
|
-
"phantom",
|
|
219
|
-
["phantom", "ethereum"],
|
|
220
|
-
walletRegistry.phantom.name,
|
|
221
|
-
)
|
|
222
|
-
const okxConnector = windowProviderOrWalletConnect(
|
|
223
|
-
"okx",
|
|
224
|
-
"okxwallet",
|
|
225
|
-
walletRegistry.okx.name,
|
|
226
|
-
)
|
|
227
|
-
const zerionConnector = windowProviderOrWalletConnect(
|
|
228
|
-
"zerion",
|
|
229
|
-
"zerionWallet",
|
|
230
|
-
walletRegistry.zerion.name,
|
|
231
|
-
)
|
|
232
|
-
const ambireConnector = windowProviderOrWalletConnect(
|
|
233
|
-
"ambire",
|
|
234
|
-
"ambire",
|
|
235
|
-
walletRegistry.ambire.name,
|
|
236
|
-
)
|
|
237
|
-
|
|
238
|
-
// Note: Rabby and Coinbase removed - they support EIP-6963 discovery
|
|
239
|
-
|
|
240
|
-
// Create sequence connector with projectAccessKey
|
|
241
|
-
const sequenceConnector: ConfigConnector = sequenceWallet({
|
|
242
|
-
connect: {
|
|
243
|
-
app: "Trails",
|
|
244
|
-
projectAccessKey: projectAccessKey || getConfig("trailsApiKey") || "",
|
|
245
|
-
},
|
|
246
|
-
defaultNetwork: 1,
|
|
247
|
-
walletAppURL: getSequenceWalletAppUrl(trailsApiUrl),
|
|
248
|
-
})
|
|
249
|
-
|
|
250
|
-
return {
|
|
251
|
-
injected: injectedConnector,
|
|
252
|
-
walletconnect: walletConnectConnector,
|
|
253
|
-
safe: safeConnector,
|
|
254
|
-
baseAccount: baseAccountConnector,
|
|
255
|
-
gemini: geminiConnector,
|
|
256
|
-
trust: trustConnector,
|
|
257
|
-
phantom: phantomConnector,
|
|
258
|
-
okx: okxConnector,
|
|
259
|
-
zerion: zerionConnector,
|
|
260
|
-
ambire: ambireConnector,
|
|
261
|
-
sequence: sequenceConnector,
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
function getCachedInternalConnectors(
|
|
266
|
-
projectAccessKey?: string,
|
|
267
|
-
trailsApiUrl?: string,
|
|
268
|
-
): InternalConnectors {
|
|
269
|
-
const cacheKey = `${projectAccessKey || "default"}:${trailsApiUrl || "default"}`
|
|
270
|
-
|
|
271
|
-
const cachedConnectors = connectorsCache.get(cacheKey)
|
|
272
|
-
if (cachedConnectors) {
|
|
273
|
-
return cachedConnectors
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
const internalConnectors = createInternalConnectors(
|
|
277
|
-
projectAccessKey,
|
|
278
|
-
trailsApiUrl,
|
|
279
|
-
)
|
|
280
|
-
connectorsCache.set(cacheKey, internalConnectors)
|
|
281
|
-
return internalConnectors
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
export function getConnectorsInternal(
|
|
285
|
-
projectAccessKey?: string,
|
|
286
|
-
trailsApiUrl?: string,
|
|
287
|
-
): ConfigConnector[] {
|
|
288
|
-
const internalConnectors = getCachedInternalConnectors(
|
|
289
|
-
projectAccessKey,
|
|
290
|
-
trailsApiUrl,
|
|
291
|
-
)
|
|
292
|
-
|
|
293
|
-
return [
|
|
294
|
-
internalConnectors.injected,
|
|
295
|
-
internalConnectors.walletconnect,
|
|
296
|
-
internalConnectors.safe,
|
|
297
|
-
internalConnectors.baseAccount,
|
|
298
|
-
internalConnectors.gemini,
|
|
299
|
-
internalConnectors.trust,
|
|
300
|
-
internalConnectors.phantom,
|
|
301
|
-
internalConnectors.okx,
|
|
302
|
-
internalConnectors.zerion,
|
|
303
|
-
internalConnectors.ambire,
|
|
304
|
-
internalConnectors.sequence,
|
|
305
|
-
]
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Hook to get wallet configurations, creating connectors lazily with the correct configuration
|
|
310
|
-
*/
|
|
311
|
-
export function useWalletConfigs(): Record<string, WalletConfig> {
|
|
312
|
-
const { trailsApiKey, trailsApiUrl } = useTrails()
|
|
313
|
-
|
|
314
|
-
return React.useMemo(() => {
|
|
315
|
-
return getWalletConfigsInternal(trailsApiKey, trailsApiUrl)
|
|
316
|
-
}, [trailsApiKey, trailsApiUrl])
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* Internal function to get wallet configs (for use outside React components)
|
|
321
|
-
*/
|
|
322
|
-
function getWalletConfigsInternal(
|
|
323
|
-
projectAccessKey?: string,
|
|
324
|
-
trailsApiUrl?: string,
|
|
325
|
-
): Record<string, WalletConfig> {
|
|
326
|
-
const walletRegistry = getWalletRegistry()
|
|
327
|
-
const internalConnectors = getCachedInternalConnectors(
|
|
328
|
-
projectAccessKey,
|
|
329
|
-
trailsApiUrl,
|
|
330
|
-
)
|
|
331
|
-
|
|
332
|
-
// Create wallet-specific connectors with EIP-6963 priority
|
|
333
|
-
// These will check EIP-6963 first (in widget.tsx), then window properties, then WalletConnect
|
|
334
|
-
const metamaskConnector = windowProviderOrWalletConnect(
|
|
335
|
-
"metamask",
|
|
336
|
-
(provider) => provider.isMetaMask === true,
|
|
337
|
-
walletRegistry.metamask.name,
|
|
338
|
-
)
|
|
339
|
-
const rabbyConnector = windowProviderOrWalletConnect(
|
|
340
|
-
"rabby",
|
|
341
|
-
(provider) => provider.isRabby === true,
|
|
342
|
-
walletRegistry.rabby.name,
|
|
343
|
-
)
|
|
344
|
-
const rainbowConnector = windowProviderOrWalletConnect(
|
|
345
|
-
"rainbow",
|
|
346
|
-
"rainbow",
|
|
347
|
-
walletRegistry.rainbow.name,
|
|
348
|
-
)
|
|
349
|
-
const coinbaseConnector = windowProviderOrWalletConnect(
|
|
350
|
-
"coinbase",
|
|
351
|
-
"coinbaseWalletExtension",
|
|
352
|
-
walletRegistry.coinbase.name,
|
|
353
|
-
)
|
|
354
|
-
|
|
355
|
-
return {
|
|
356
|
-
injected: {
|
|
357
|
-
...walletRegistry.injected,
|
|
358
|
-
connector: internalConnectors.injected,
|
|
359
|
-
},
|
|
360
|
-
walletconnect: {
|
|
361
|
-
...walletRegistry.walletconnect,
|
|
362
|
-
connector: internalConnectors.walletconnect,
|
|
363
|
-
},
|
|
364
|
-
metamask: {
|
|
365
|
-
...walletRegistry.metamask,
|
|
366
|
-
connector: metamaskConnector,
|
|
367
|
-
},
|
|
368
|
-
baseAccount: {
|
|
369
|
-
...walletRegistry.baseAccount,
|
|
370
|
-
connector: internalConnectors.baseAccount,
|
|
371
|
-
},
|
|
372
|
-
safe: {
|
|
373
|
-
...walletRegistry.safe,
|
|
374
|
-
connector: internalConnectors.safe,
|
|
375
|
-
},
|
|
376
|
-
rainbow: {
|
|
377
|
-
...walletRegistry.rainbow,
|
|
378
|
-
connector: rainbowConnector,
|
|
379
|
-
},
|
|
380
|
-
trust: {
|
|
381
|
-
...walletRegistry.trust,
|
|
382
|
-
connector: internalConnectors.trust,
|
|
383
|
-
},
|
|
384
|
-
ambire: {
|
|
385
|
-
...walletRegistry.ambire,
|
|
386
|
-
connector: internalConnectors.ambire,
|
|
387
|
-
},
|
|
388
|
-
argent: {
|
|
389
|
-
...walletRegistry.argent,
|
|
390
|
-
connector: internalConnectors.walletconnect,
|
|
391
|
-
},
|
|
392
|
-
binance: {
|
|
393
|
-
...walletRegistry.binance,
|
|
394
|
-
connector: internalConnectors.walletconnect,
|
|
395
|
-
},
|
|
396
|
-
okx: {
|
|
397
|
-
...walletRegistry.okx,
|
|
398
|
-
connector: internalConnectors.okx,
|
|
399
|
-
},
|
|
400
|
-
zerion: {
|
|
401
|
-
...walletRegistry.zerion,
|
|
402
|
-
connector: internalConnectors.zerion,
|
|
403
|
-
},
|
|
404
|
-
phantom: {
|
|
405
|
-
...walletRegistry.phantom,
|
|
406
|
-
connector: internalConnectors.phantom,
|
|
407
|
-
},
|
|
408
|
-
coinbase: {
|
|
409
|
-
...walletRegistry.coinbase,
|
|
410
|
-
connector: coinbaseConnector,
|
|
411
|
-
},
|
|
412
|
-
rabby: {
|
|
413
|
-
...walletRegistry.rabby,
|
|
414
|
-
connector: rabbyConnector,
|
|
415
|
-
},
|
|
416
|
-
privy: walletRegistry.privy,
|
|
417
|
-
gemini: {
|
|
418
|
-
...walletRegistry.gemini,
|
|
419
|
-
connector: internalConnectors.gemini,
|
|
420
|
-
},
|
|
421
|
-
sequence: {
|
|
422
|
-
...walletRegistry.sequence,
|
|
423
|
-
connector: internalConnectors.sequence,
|
|
424
|
-
},
|
|
425
|
-
"sequence-waas": {
|
|
426
|
-
...walletRegistry["sequence-waas"],
|
|
427
|
-
connector: internalConnectors.sequence,
|
|
428
|
-
},
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
const PROD_SEQUENCE_WALLET_APP_URL = "https://sequence.app"
|
|
433
|
-
const DEV_SEQUENCE_WALLET_APP_URL = "https://dev.sequence.app"
|
|
434
|
-
|
|
435
|
-
function isDevEnvironment(trailsApiUrl: string): boolean {
|
|
436
|
-
return (
|
|
437
|
-
trailsApiUrl.includes("dev-trails-api.sequence-dev.app") ||
|
|
438
|
-
trailsApiUrl.includes("dev2-trails-api.sequence-dev.app") ||
|
|
439
|
-
trailsApiUrl.includes("localhost")
|
|
440
|
-
)
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
function getSequenceWalletAppUrl(trailsApiUrl?: string): string {
|
|
444
|
-
return isDevEnvironment(trailsApiUrl || PROD_TRAILS_API_URL)
|
|
445
|
-
? DEV_SEQUENCE_WALLET_APP_URL
|
|
446
|
-
: PROD_SEQUENCE_WALLET_APP_URL
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
export const isEmbeddedConnector = (
|
|
450
|
-
connector?: Pick<WalletConnector, "name"> | null,
|
|
451
|
-
): boolean => {
|
|
452
|
-
if (!connector) return false
|
|
453
|
-
if (
|
|
454
|
-
connector.name?.toLowerCase()?.includes("privy") ||
|
|
455
|
-
connector.name?.toLowerCase()?.includes("sequence waas")
|
|
456
|
-
)
|
|
457
|
-
return true
|
|
458
|
-
return false
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
// Hook to get combined wallets from wallet configs and wagmi connectors
|
|
462
|
-
export const useWallets = () => {
|
|
463
|
-
const connectors = useWagmiConnectors()
|
|
464
|
-
const walletConfigs = useWalletConfigs()
|
|
465
|
-
|
|
466
|
-
const allWallets = React.useMemo(() => {
|
|
467
|
-
const hasConnector = (
|
|
468
|
-
walletConfig: WalletConfig,
|
|
469
|
-
): walletConfig is WalletConfig & { connector: ConfigConnector } => {
|
|
470
|
-
return Boolean(walletConfig.connector)
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
// Get config wallets that have connectors
|
|
474
|
-
const configWallets = Object.values(walletConfigs)
|
|
475
|
-
.filter(hasConnector)
|
|
476
|
-
.map((config) => ({
|
|
477
|
-
id: config.id,
|
|
478
|
-
name: config.name,
|
|
479
|
-
icon: config.icon,
|
|
480
|
-
connector: config.connector,
|
|
481
|
-
source: "config",
|
|
482
|
-
}))
|
|
483
|
-
|
|
484
|
-
// Get wagmi wallets
|
|
485
|
-
const wagmiWallets = connectors.map((connector) => ({
|
|
486
|
-
id: wagmiConnectorToWalletId(connector),
|
|
487
|
-
name: connector.name || "",
|
|
488
|
-
icon:
|
|
489
|
-
getWalletIcon(wagmiConnectorToWalletId(connector)) ||
|
|
490
|
-
connector.icon ||
|
|
491
|
-
"",
|
|
492
|
-
connector: connector,
|
|
493
|
-
source: "wagmi",
|
|
494
|
-
}))
|
|
495
|
-
|
|
496
|
-
// Combine and deduplicate, prioritizing wagmi connector over config connector.
|
|
497
|
-
// We keep config metadata (name, icon) but always prefer the connector instance
|
|
498
|
-
// from the active Wagmi config so that consumer-provided connectors (e.g. WaaS)
|
|
499
|
-
// are used instead of the SDK's own connector instances.
|
|
500
|
-
const allWallets: WalletOption[] = []
|
|
501
|
-
|
|
502
|
-
for (const wallet of configWallets) {
|
|
503
|
-
// Always check if the active Wagmi config has a matching connector
|
|
504
|
-
const wagmiConnector = connectors.find(
|
|
505
|
-
(connector) => wagmiConnectorToWalletId(connector) === wallet.id,
|
|
506
|
-
)
|
|
507
|
-
const resolvedConnector = wagmiConnector ?? wallet.connector
|
|
508
|
-
if (!resolvedConnector) {
|
|
509
|
-
continue
|
|
510
|
-
}
|
|
511
|
-
allWallets.push({
|
|
512
|
-
id: wallet.id,
|
|
513
|
-
name: wallet.name,
|
|
514
|
-
icon: wallet.icon,
|
|
515
|
-
connector: resolvedConnector,
|
|
516
|
-
source: wagmiConnector ? "wagmi" : "config",
|
|
517
|
-
})
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
for (const wallet of wagmiWallets) {
|
|
521
|
-
if (
|
|
522
|
-
!allWallets.find((existingWallet) => existingWallet.id === wallet.id)
|
|
523
|
-
) {
|
|
524
|
-
const configWallet = configWallets.find(
|
|
525
|
-
(config) => config.id === wallet.id,
|
|
526
|
-
)
|
|
527
|
-
|
|
528
|
-
allWallets.push({
|
|
529
|
-
id: wallet.id,
|
|
530
|
-
name: configWallet?.name || wallet.name,
|
|
531
|
-
icon: configWallet?.icon || wallet.icon,
|
|
532
|
-
connector: wallet.connector,
|
|
533
|
-
source: "wagmi",
|
|
534
|
-
})
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
return allWallets
|
|
539
|
-
}, [connectors, walletConfigs])
|
|
540
|
-
|
|
541
|
-
return {
|
|
542
|
-
wallets: allWallets,
|
|
543
|
-
}
|
|
544
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { useCallback, useEffect } from "react"
|
|
2
|
-
import {
|
|
3
|
-
getAnalytics,
|
|
4
|
-
trackWalletConnected,
|
|
5
|
-
trackWalletDisconnected as trackWalletDisconnectedEvent,
|
|
6
|
-
} from "../../analytics.js"
|
|
7
|
-
import { SDK_VERSION } from "../../version.js"
|
|
8
|
-
|
|
9
|
-
export interface UseWidgetAnalyticsOptions {
|
|
10
|
-
address: string | undefined
|
|
11
|
-
chainId: number | undefined
|
|
12
|
-
connectorName: string | undefined
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface UseWidgetAnalyticsReturn {
|
|
16
|
-
trackWalletDisconnected: () => void
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function useWidgetAnalytics(
|
|
20
|
-
options: UseWidgetAnalyticsOptions,
|
|
21
|
-
): UseWidgetAnalyticsReturn {
|
|
22
|
-
const { address, chainId, connectorName } = options
|
|
23
|
-
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
console.log(`[trails-sdk] SDK Version: ${SDK_VERSION}`)
|
|
26
|
-
}, [])
|
|
27
|
-
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
const analytics = getAnalytics()
|
|
30
|
-
|
|
31
|
-
if (address) {
|
|
32
|
-
analytics.identifyUser({ address })
|
|
33
|
-
return
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
analytics.unidentifyUser()
|
|
37
|
-
}, [address])
|
|
38
|
-
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
if (!address || !chainId || !connectorName) {
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
trackWalletConnected({
|
|
45
|
-
walletType: connectorName,
|
|
46
|
-
address,
|
|
47
|
-
chainId,
|
|
48
|
-
})
|
|
49
|
-
}, [address, chainId, connectorName])
|
|
50
|
-
|
|
51
|
-
const trackWalletDisconnected = useCallback(() => {
|
|
52
|
-
trackWalletDisconnectedEvent()
|
|
53
|
-
}, [])
|
|
54
|
-
|
|
55
|
-
return { trackWalletDisconnected }
|
|
56
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M13.5755 5.09116C14.6687 5.09116 15.7243 5.25284 16.72 5.55209C15.0506 5.89213 13.5212 6.61601 12.224 7.62371C8.18051 8.27118 5.09114 11.7741 5.09114 16C5.09115 19.9601 7.804 23.2857 11.4727 24.2214C12.6797 25.3468 14.1414 26.2011 15.763 26.6888C15.0563 26.8327 14.3247 26.9089 13.5755 26.9089C7.5507 26.9087 2.66667 22.0249 2.66666 16C2.66666 9.97516 7.5507 5.09128 13.5755 5.09116Z" fill="black"/>
|
|
3
|
-
<path d="M18.9088 5.33334C24.9337 5.33334 29.8176 10.2174 29.8177 16.2422C29.8177 22.2671 24.9338 27.1511 18.9088 27.1511C14.2677 27.151 10.306 24.2525 8.73038 20.1671C8.44107 19.4169 9.03887 18.6667 9.84289 18.6667C10.3973 18.6667 10.8771 19.0353 11.0931 19.5458C12.3812 22.5906 15.3949 24.7278 18.9088 24.7279C23.5949 24.7279 27.3945 20.9283 27.3945 16.2422C27.3944 11.5563 23.5948 7.75782 18.9088 7.75782C15.5577 7.75791 12.6605 9.70058 11.2818 12.5213C11.049 12.9975 10.5835 13.3333 10.0534 13.3333C9.21967 13.3333 8.6156 12.5357 8.95732 11.7752C10.6635 7.97812 14.4761 5.33344 18.9088 5.33334Z" fill="black"/>
|
|
4
|
-
<path d="M17.9596 9.95973C18.3502 9.5692 18.9832 9.5692 19.3737 9.95973L24.707 15.2931C25.0975 15.6836 25.0975 16.3166 24.707 16.7071L19.3737 22.0405C18.9832 22.4309 18.3501 22.4309 17.9596 22.0405C17.5691 21.6499 17.5691 21.0169 17.9596 20.6264L21.5859 17.0001H8C7.44774 17.0001 7.00004 16.5523 7 16.0001C7 15.4478 7.44771 15.0001 8 15.0001H21.5859L17.9596 11.3738C17.5691 10.9833 17.5691 10.3503 17.9596 9.95973Z" fill="black"/>
|
|
5
|
-
</svg>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<svg width="1025" height="1025" viewBox="0 0 1025 1025" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g clip-path="url(#clip0_542_3186)">
|
|
3
|
-
<path d="M862.005 871.546L689.114 820.065L558.73 898.006L467.763 897.968L337.303 820.065L164.488 871.546L111.92 694.087L164.488 497.133L111.92 330.613L164.488 124.233L434.526 285.567H591.967L862.005 124.233L914.573 330.613L862.005 497.133L914.573 694.087L862.005 871.546Z" fill="#FF5C16"/>
|
|
4
|
-
<path d="M164.527 124.233L434.566 285.68L423.826 396.479L164.527 124.233Z" fill="#FF5C16"/>
|
|
5
|
-
<path d="M337.34 694.163L456.155 784.672L337.34 820.065V694.163Z" fill="#FF5C16"/>
|
|
6
|
-
<path d="M446.659 544.525L423.823 396.554L277.65 497.169L277.574 497.132V497.207L278.026 600.776L337.302 544.525H337.34H446.659Z" fill="#FF5C16"/>
|
|
7
|
-
<path d="M862.005 124.233L591.967 285.68L602.669 396.479L862.005 124.233Z" fill="#FF5C16"/>
|
|
8
|
-
<path d="M689.19 694.163L570.375 784.672L689.19 820.065V694.163Z" fill="#FF5C16"/>
|
|
9
|
-
<path d="M748.922 497.207H748.96H748.922V497.132L748.884 497.169L602.711 396.554L579.875 544.525H689.194L748.508 600.776L748.922 497.207Z" fill="#FF5C16"/>
|
|
10
|
-
<path d="M337.303 820.062L164.488 871.544L111.92 694.16H337.303V820.062Z" fill="#E34807"/>
|
|
11
|
-
<path d="M446.623 544.487L479.634 758.4L433.886 639.463L277.953 600.776L337.267 544.487H446.586H446.623Z" fill="#E34807"/>
|
|
12
|
-
<path d="M689.188 820.062L862.003 871.544L914.571 694.16H689.188V820.062Z" fill="#E34807"/>
|
|
13
|
-
<path d="M579.87 544.487L546.859 758.4L592.607 639.463L748.54 600.776L689.189 544.487H579.87Z" fill="#E34807"/>
|
|
14
|
-
<path d="M111.92 694.085L164.488 497.131H277.538L277.952 600.737L433.886 639.424L479.633 758.361L456.119 784.556L337.304 694.047H111.92V694.085Z" fill="#FF8D5D"/>
|
|
15
|
-
<path d="M914.573 694.085L862.004 497.131H748.955L748.54 600.737L592.607 639.424L546.859 758.361L570.374 784.556L689.189 694.047H914.573V694.085Z" fill="#FF8D5D"/>
|
|
16
|
-
<path d="M591.969 285.567H513.249H434.528L423.826 396.366L479.635 758.25H546.862L602.709 396.366L591.969 285.567Z" fill="#FF8D5D"/>
|
|
17
|
-
<path d="M164.488 124.233L111.92 330.613L164.488 497.133H277.538L423.787 396.479L164.488 124.233Z" fill="#661800"/>
|
|
18
|
-
<path d="M413.951 587.451H362.739L334.854 614.781L433.923 639.349L413.951 587.413V587.451Z" fill="#661800"/>
|
|
19
|
-
<path d="M862.006 124.233L914.574 330.613L862.006 497.133H748.956L602.707 396.479L862.006 124.233Z" fill="#661800"/>
|
|
20
|
-
<path d="M612.617 587.451H663.904L691.79 614.819L592.607 639.424L612.617 587.413V587.451Z" fill="#661800"/>
|
|
21
|
-
<path d="M558.692 827.41L570.373 784.635L546.859 758.44H479.594L456.08 784.635L467.762 827.41" fill="#661800"/>
|
|
22
|
-
<path d="M558.689 827.407V898.043H467.76V827.407H558.689Z" fill="#C0C4CD"/>
|
|
23
|
-
<path d="M337.34 819.99L467.837 898.007V827.372L456.155 784.597L337.34 819.99Z" fill="#E7EBF6"/>
|
|
24
|
-
<path d="M689.19 819.99L558.693 898.007V827.372L570.375 784.597L689.19 819.99Z" fill="#E7EBF6"/>
|
|
25
|
-
</g>
|
|
26
|
-
<defs>
|
|
27
|
-
<clipPath id="clip0_542_3186">
|
|
28
|
-
<rect width="1024" height="1024" fill="white" transform="translate(0.986328 0.5)"/>
|
|
29
|
-
</clipPath>
|
|
30
|
-
</defs>
|
|
31
|
-
</svg>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 29.4.0, SVG Export Plug-In . SVG Version: 9.03 Build 0) -->
|
|
3
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
-
viewBox="0 0 142 136.878" style="enable-background:new 0 0 142 136.878;" xml:space="preserve">
|
|
5
|
-
<path style="fill:#FF5C16;" d="M132.682,132.192l-30.583-9.106l-23.063,13.787l-16.092-0.007l-23.077-13.78l-30.569,9.106L0,100.801
|
|
6
|
-
l9.299-34.839L0,36.507L9.299,0l47.766,28.538h27.85L132.682,0l9.299,36.507l-9.299,29.455l9.299,34.839L132.682,132.192
|
|
7
|
-
L132.682,132.192z"/>
|
|
8
|
-
<path style="fill:#FF5C16;" d="M9.305,0l47.767,28.558l-1.899,19.599L9.305,0z M39.875,100.814l21.017,16.01l-21.017,6.261
|
|
9
|
-
C39.875,123.085,39.875,100.814,39.875,100.814z M59.212,74.345l-4.039-26.174L29.317,65.97l-0.014-0.007v0.013l0.08,18.321
|
|
10
|
-
l10.485-9.951L59.212,74.345L59.212,74.345z M132.682,0L84.915,28.558l1.893,19.599L132.682,0z M102.113,100.814l-21.018,16.01
|
|
11
|
-
l21.018,6.261V100.814z M112.678,65.975h0.007H112.678v-0.013l-0.006,0.007L86.815,48.171l-4.039,26.174h19.336l10.492,9.95
|
|
12
|
-
C112.604,84.295,112.678,65.975,112.678,65.975z"/>
|
|
13
|
-
<path style="fill:#E34807;" d="M39.868,123.085l-30.569,9.106L0,100.814h39.868C39.868,100.814,39.868,123.085,39.868,123.085z
|
|
14
|
-
M59.205,74.338l5.839,37.84l-8.093-21.04L29.37,84.295l10.491-9.956h19.344L59.205,74.338z M102.112,123.085l30.57,9.106
|
|
15
|
-
l9.299-31.378h-39.869C102.112,100.814,102.112,123.085,102.112,123.085z M82.776,74.338l-5.839,37.84l8.092-21.04l27.583-6.843
|
|
16
|
-
l-10.498-9.956H82.776V74.338z"/>
|
|
17
|
-
<path style="fill:#FF8D5D;" d="M0,100.801l9.299-34.839h19.997l0.073,18.327l27.584,6.843l8.092,21.039l-4.16,4.633l-21.017-16.01H0
|
|
18
|
-
V100.801z M141.981,100.801l-9.299-34.839h-19.998l-0.073,18.327l-27.582,6.843l-8.093,21.039l4.159,4.633l21.018-16.01h39.868
|
|
19
|
-
V100.801z M84.915,28.538h-27.85l-1.891,19.599l9.872,64.013h11.891l9.878-64.013L84.915,28.538z"/>
|
|
20
|
-
<path style="fill:#661800;" d="M9.299,0L0,36.507l9.299,29.455h19.997l25.87-17.804L9.299,0z M53.426,81.938h-9.059l-4.932,4.835
|
|
21
|
-
l17.524,4.344l-3.533-9.186V81.938z M132.682,0l9.299,36.507l-9.299,29.455h-19.998L86.815,48.158L132.682,0z M88.568,81.938h9.072
|
|
22
|
-
l4.932,4.841l-17.544,4.353l3.54-9.201V81.938z M79.029,124.385l2.067-7.567l-4.16-4.633h-11.9l-4.159,4.633l2.066,7.567"/>
|
|
23
|
-
<path style="fill:#C0C4CD;" d="M79.029,124.384v12.495H62.945v-12.495L79.029,124.384L79.029,124.384z"/>
|
|
24
|
-
<path style="fill:#E7EBF6;" d="M39.875,123.072l23.083,13.8v-12.495l-2.067-7.566C60.891,116.811,39.875,123.072,39.875,123.072z
|
|
25
|
-
M102.113,123.072l-23.084,13.8v-12.495l2.067-7.566C81.096,116.811,102.113,123.072,102.113,123.072z"/>
|
|
26
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 127 63">
|
|
2
|
-
<path fill="currentColor" d="M71.554 48.607v13.81h-7.072v-9.568l-8.059.945c-1.77.205-2.548.79-2.548 1.864 0 1.575 1.478 2.239 4.648 2.239 1.932 0 4.073-.29 5.963-.79l-3.66 5.225c-1.479.332-2.92.496-4.44.496-6.414 0-10.074-2.57-10.074-7.132 0-4.023 2.877-6.136 9.416-6.884l8.638-1.012c-.467-2.532-2.362-3.633-6.13-3.633-3.537 0-7.443.912-10.937 2.613l1.111-6.18c3.248-1.369 6.95-2.074 10.69-2.074 8.226 0 12.461 3.444 12.461 10.075l-.008.005ZM7.938 31.315.208 62.416h7.73l3.836-15.628 6.65 8.039h8.06l6.65-8.039 3.836 15.628h7.73l-7.73-31.105-14.518 17.388L7.934 31.311l.004.004ZM36.97.21 22.452 17.598 7.938.21.208 31.315h7.73l3.836-15.628 6.65 8.039h8.06l6.65-8.039 3.836 15.628h7.73L36.97.21Zm53.17 48.107-6.25-.912c-1.562-.247-2.178-.747-2.178-1.617 0-1.41 1.52-2.032 4.647-2.032 3.62 0 6.868.747 10.283 2.364l-.862-6.094c-2.757-.995-5.922-1.491-9.212-1.491-7.688 0-11.886 2.696-11.886 7.547 0 3.776 2.303 5.889 7.196 6.636l6.335.954c1.603.248 2.261.87 2.261 1.865 0 1.41-1.478 2.074-4.481 2.074-3.948 0-8.225-.953-11.72-2.654l.7 6.094c3.003 1.122 6.91 1.785 10.57 1.785 7.896 0 12.007-2.78 12.007-7.715 0-3.94-2.303-6.057-7.4-6.8l-.01-.004ZM100.3 34.09v28.325h7.071V34.091H100.3Zm15.334 15.595 9.833-10.744h-8.8l-9.296 11.114 9.912 12.356h8.925l-10.574-12.73v.004Zm-16.321-25.09c0 4.56 3.66 7.13 10.074 7.13 1.52 0 2.961-.167 4.44-.495l3.66-5.225c-1.89.496-4.031.79-5.963.79-3.166 0-4.648-.664-4.648-2.239 0-1.079.783-1.659 2.549-1.864l8.058-.945v9.567h7.072v-13.81c0-6.635-4.236-10.075-12.461-10.075-3.744 0-7.442.705-10.691 2.075l-1.112 6.178c3.495-1.701 7.401-2.613 10.937-2.613 3.769 0 5.664 1.1 6.13 3.633l-8.637 1.013c-6.539.747-9.417 2.86-9.417 6.883l.009-.004Zm-19.779-1.492c0 5.725 3.29 8.627 9.787 8.627 2.59 0 4.732-.416 6.785-1.37l.903-6.261c-1.974 1.2-3.99 1.822-6.005 1.822-3.044 0-4.402-1.243-4.402-4.023v-8.295h10.732V7.84H86.601V2.948l-13.448 7.174v3.482h6.372V23.1l.008.004Zm-6.95-2.612v1.411H53.47c.862 2.873 3.423 4.187 7.97 4.187 3.62 0 6.993-.747 9.992-2.196l-.862 6.056c-2.757 1.16-6.251 1.785-9.829 1.785-9.5 0-14.68-4.23-14.68-12.066 0-7.838 5.264-12.235 13.406-12.235s13.119 4.771 13.119 13.062l-.005-.004ZM53.378 17.09h12.086c-.637-2.751-2.732-4.188-6.08-4.188-3.349 0-5.335 1.399-6.006 4.188Z"/>
|
|
3
|
-
</svg>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 127 63">
|
|
3
|
-
<defs>
|
|
4
|
-
<style>
|
|
5
|
-
.cls-1 {
|
|
6
|
-
fill: #fff;
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
</defs>
|
|
10
|
-
<!-- Generator: Adobe Illustrator 28.7.1, SVG Export Plug-In . SVG Version: 1.2.0 Build 142) -->
|
|
11
|
-
<g>
|
|
12
|
-
<g id="Layer_1">
|
|
13
|
-
<path class="cls-1" d="M71.6,48.6v13.8h-7.1v-9.6l-8.1.9c-1.8.2-2.5.8-2.5,1.9,0,1.6,1.5,2.2,4.6,2.2s4.1-.3,6-.8l-3.7,5.2c-1.5.3-2.9.5-4.4.5-6.4,0-10.1-2.6-10.1-7.1s2.9-6.1,9.4-6.9l8.6-1c-.5-2.5-2.4-3.6-6.1-3.6s-7.4.9-10.9,2.6l1.1-6.2c3.2-1.4,7-2.1,10.7-2.1,8.2,0,12.5,3.4,12.5,10.1h0s0,0,0,0ZM7.9,31.3L.2,62.4h7.7l3.8-15.6,6.6,8h8.1l6.7-8,3.8,15.6h7.7l-7.7-31.1-14.5,17.4L7.9,31.3h0ZM37,.2l-14.5,17.4L7.9.2.2,31.3h7.7l3.8-15.6,6.6,8h8.1l6.7-8,3.8,15.6h7.7L37,.2ZM90.1,48.3l-6.2-.9c-1.6-.2-2.2-.7-2.2-1.6,0-1.4,1.5-2,4.6-2s6.9.7,10.3,2.4l-.9-6.1c-2.8-1-5.9-1.5-9.2-1.5-7.7,0-11.9,2.7-11.9,7.5s2.3,5.9,7.2,6.6l6.3,1c1.6.2,2.3.9,2.3,1.9,0,1.4-1.5,2.1-4.5,2.1s-8.2-1-11.7-2.7l.7,6.1c3,1.1,6.9,1.8,10.6,1.8,7.9,0,12-2.8,12-7.7s-2.3-6.1-7.4-6.8h0s0,0,0,0ZM100.3,34.1v28.3h7.1v-28.3h-7.1ZM115.6,49.7l9.8-10.7h-8.8l-9.3,11.1,9.9,12.4h8.9l-10.6-12.7s0,0,0,0ZM99.3,24.6c0,4.6,3.7,7.1,10.1,7.1s3-.2,4.4-.5l3.7-5.2c-1.9.5-4,.8-6,.8-3.2,0-4.6-.7-4.6-2.2s.8-1.7,2.5-1.9l8.1-.9v9.6h7.1v-13.8c0-6.6-4.2-10.1-12.5-10.1s-7.4.7-10.7,2.1l-1.1,6.2c3.5-1.7,7.4-2.6,10.9-2.6s5.7,1.1,6.1,3.6l-8.6,1c-6.5.7-9.4,2.9-9.4,6.9h0s0,0,0,0ZM79.5,23.1c0,5.7,3.3,8.6,9.8,8.6s4.7-.4,6.8-1.4l.9-6.3c-2,1.2-4,1.8-6,1.8-3,0-4.4-1.2-4.4-4v-8.3h10.7v-5.8h-10.7V2.9l-13.4,7.2v3.5h6.4v9.5h0s0,0,0,0ZM72.6,20.5v1.4h-19.1c.9,2.9,3.4,4.2,8,4.2s7-.7,10-2.2l-.9,6.1c-2.8,1.2-6.3,1.8-9.8,1.8-9.5,0-14.7-4.2-14.7-12.1s5.3-12.2,13.4-12.2,13.1,4.8,13.1,13.1h0s0,0,0,0ZM53.4,17.1h12.1c-.6-2.8-2.7-4.2-6.1-4.2s-5.3,1.4-6,4.2Z"/>
|
|
14
|
-
</g>
|
|
15
|
-
</g>
|
|
16
|
-
</svg>
|