@funkit/connect 0.1.9 → 0.1.12
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 +5 -1
- package/dist/__private__/index.d.ts +8 -0
- package/dist/chunk-7BFJCGW2.js +24994 -0
- package/dist/{chunk-6NU6GSSJ.js → chunk-JC32QCLG.js} +8608 -8461
- package/dist/{chunk-W7RO4DCA.js → chunk-Q73FKLU4.js} +1 -0
- package/dist/{chunk-ZKI6VFDD.js → chunk-UOUEGWLS.js} +1 -0
- package/dist/components/AccountModal/AccountModal.d.ts +6 -0
- package/dist/components/AsyncImage/AsyncImage.d.ts +19 -0
- package/dist/components/AsyncImage/useAsyncImage.d.ts +3 -0
- package/dist/components/Avatar/Avatar.d.ts +9 -0
- package/dist/components/Avatar/EmojiAvatar.d.ts +2 -0
- package/dist/components/Avatar/emojiAvatarForAddress.d.ts +106 -0
- package/dist/components/Box/Box.d.ts +86 -0
- package/dist/components/Button/ActionButton.d.ts +14 -0
- package/dist/components/ChainModal/ChainModal.css.d.ts +2 -0
- package/dist/components/ChainModal/ChainModal.d.ts +6 -0
- package/dist/components/CloseButton/CloseButton.d.ts +5 -0
- package/dist/components/ConnectButton/ConnectButton.d.ts +28 -0
- package/dist/components/ConnectButton/ConnectButtonRenderer.d.ts +39 -0
- package/dist/components/ConnectButton/abbreviateETHBalance.d.ts +2 -0
- package/dist/components/ConnectButton/formatAddress.d.ts +1 -0
- package/dist/components/ConnectButton/formatENS.d.ts +1 -0
- package/dist/components/ConnectOptions/ConnectDetails.d.ts +36 -0
- package/dist/components/ConnectOptions/DesktopOptions.css.d.ts +4 -0
- package/dist/components/ConnectOptions/DesktopOptions.d.ts +15 -0
- package/dist/components/ConnectOptions/FunConnectOptions.d.ts +11 -0
- package/dist/components/ConnectOptions/MobileOptions.css.d.ts +1 -0
- package/dist/components/ConnectOptions/MobileOptions.d.ts +4 -0
- package/dist/components/Dialog/Dialog.css.d.ts +5 -0
- package/dist/components/Dialog/Dialog.d.ts +12 -0
- package/dist/components/Dialog/DialogContent.css.d.ts +6 -0
- package/dist/components/Dialog/DialogContent.d.ts +12 -0
- package/dist/components/Dialog/FocusTrap.d.ts +2 -0
- package/dist/components/Disclaimer/DisclaimerLink.d.ts +5 -0
- package/dist/components/Disclaimer/DisclaimerText.d.ts +4 -0
- package/dist/components/FunButton/FunBackButton.d.ts +4 -0
- package/dist/components/FunButton/FunButton.css.d.ts +3 -0
- package/dist/components/FunButton/FunButton.d.ts +18 -0
- package/dist/components/FunButton/FunIconButton.d.ts +16 -0
- package/dist/components/FunButton/FunLinkButton.d.ts +9 -0
- package/dist/components/FunButton/FunViewTxButton.d.ts +4 -0
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +7 -0
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +8 -0
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmation.css.d.ts +7 -0
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +9 -0
- package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +15 -0
- package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +9 -0
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.css.d.ts +7 -0
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +12 -0
- package/dist/components/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +6 -0
- package/dist/components/FunConfirmDialog/FunConfirmDialog.d.ts +12 -0
- package/dist/components/FunConnectModal/FunConnectModal.d.ts +6 -0
- package/dist/components/FunContainer/FunContainer.d.ts +11 -0
- package/dist/components/FunDevTestModal/FunDevTestModal.d.ts +6 -0
- package/dist/components/FunDivider/FunDivider.d.ts +7 -0
- package/dist/components/FunInput/FunInput.css.d.ts +2 -0
- package/dist/components/FunInput/FunInput.d.ts +28 -0
- package/dist/components/FunKeyValue/FunKeyValue.d.ts +24 -0
- package/dist/components/FunMeshTwoFactorStep/FunMeshTwoFactorStep.d.ts +9 -0
- package/dist/components/FunModalTitleSection/FunModalTitleSection.css.d.ts +7 -0
- package/dist/components/FunModalTitleSection/FunModalTitleSection.d.ts +12 -0
- package/dist/components/FunNotification/FunCheckoutNotification.d.ts +6 -0
- package/dist/components/FunNotification/FunNotification.d.ts +12 -0
- package/dist/components/FunOnramp/FunOnramp.css.d.ts +7 -0
- package/dist/components/FunOnramp/FunOnrampConfirmation.css.d.ts +7 -0
- package/dist/components/FunOnramp/FunOnrampConfirmationStep.d.ts +17 -0
- package/dist/components/FunOnramp/FunOnrampInputStep.d.ts +8 -0
- package/dist/components/FunOnramp/FunOnrampPrimaryItem.d.ts +5 -0
- package/dist/components/FunOnramp/FunOnrampProcessingStep.d.ts +6 -0
- package/dist/components/FunPayments/FunPaymentMeshType.css.d.ts +7 -0
- package/dist/components/FunPayments/FunPaymentMeshType.d.ts +10 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +52 -0
- package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +10 -0
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +13 -0
- package/dist/components/FunPayments/FunPaymentSetup.d.ts +18 -0
- package/dist/components/FunPayments/FunPaymentTransferType.css.d.ts +7 -0
- package/dist/components/FunPayments/FunPaymentTransferType.d.ts +6 -0
- package/dist/components/FunPayments/FunPayments.css.d.ts +7 -0
- package/dist/components/FunProgressBar/FunHorizontalStepper.d.ts +7 -0
- package/dist/components/FunProgressBar/FunProgressBar.d.ts +6 -0
- package/dist/components/FunProgressBar/FunVerticalProgressBar.d.ts +14 -0
- package/dist/components/FunSelect/FunClickOutside.d.ts +8 -0
- package/dist/components/FunSelect/FunSelect.d.ts +24 -0
- package/dist/components/FunSignInFlow/FunSignInStep.css.d.ts +2 -0
- package/dist/components/FunSignInFlow/FunSignInStep.d.ts +14 -0
- package/dist/components/FunSignInFlow/FunWeb2ConnectingStep/FunWeb2ConnectingStep.css.d.ts +7 -0
- package/dist/components/FunSignInFlow/FunWeb2ConnectingStep/FunWeb2ConnectingStep.d.ts +9 -0
- package/dist/components/FunSignInFlow/FunWeb3ConnectingStep.css.d.ts +7 -0
- package/dist/components/FunSignInFlow/FunWeb3ConnectingStep.d.ts +9 -0
- package/dist/components/FunStates/FunErrorContent.d.ts +10 -0
- package/dist/components/FunTermsAndConditionsTextButton/FunTermsAndConditionsTextButton.d.ts +2 -0
- package/dist/components/FunToast/FunShortToast.css.d.ts +10 -0
- package/dist/components/FunToast/FunShortToast.d.ts +3 -0
- package/dist/components/FunToast/FunToast.d.ts +18 -0
- package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +13 -0
- package/dist/components/FunkitProvider/AuthenticationContext.d.ts +35 -0
- package/dist/components/FunkitProvider/AvatarContext.d.ts +9 -0
- package/dist/components/FunkitProvider/CoolModeContext.d.ts +2 -0
- package/dist/components/FunkitProvider/FunToastContext.d.ts +11 -0
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +130 -0
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +18 -0
- package/dist/components/FunkitProvider/FunkitConnectChainContext.d.ts +19 -0
- package/dist/components/FunkitProvider/FunkitProvider.d.ts +18 -0
- package/dist/components/FunkitProvider/FunkitThemeProvider.d.ts +347 -0
- package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +19 -0
- package/dist/components/FunkitProvider/I18nContext.d.ts +9 -0
- package/dist/components/FunkitProvider/ModalContext.d.ts +41 -0
- package/dist/components/FunkitProvider/ModalSizeContext.d.ts +7 -0
- package/dist/components/FunkitProvider/provideFunkitConnectChains.d.ts +3 -0
- package/dist/components/FunkitProvider/useCoolMode.d.ts +2 -0
- package/dist/components/FunkitProvider/useFingerprint.d.ts +1 -0
- package/dist/components/FunkitProvider/usePreloadImages.d.ts +1 -0
- package/dist/components/FunkitProvider/walletConnectDeepLink.d.ts +5 -0
- package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +67 -0
- package/dist/components/Icons/AcornsIcon.d.ts +2 -0
- package/dist/components/Icons/AlpacaIcon.d.ts +2 -0
- package/dist/components/Icons/Assets.d.ts +3 -0
- package/dist/components/Icons/Back.d.ts +2 -0
- package/dist/components/Icons/BinanceIcon.d.ts +2 -0
- package/dist/components/Icons/BitFlyerIcon.d.ts +2 -0
- package/dist/components/Icons/BitstampIcon.d.ts +2 -0
- package/dist/components/Icons/BridgeIcon.d.ts +2 -0
- package/dist/components/Icons/BybitIcon.d.ts +2 -0
- package/dist/components/Icons/Cancel.d.ts +2 -0
- package/dist/components/Icons/CexloIcon.d.ts +2 -0
- package/dist/components/Icons/ClockIcon.d.ts +2 -0
- package/dist/components/Icons/Close.d.ts +2 -0
- package/dist/components/Icons/CoinIcon.d.ts +4 -0
- package/dist/components/Icons/Coinbase.d.ts +2 -0
- package/dist/components/Icons/CoinlistIcon.d.ts +2 -0
- package/dist/components/Icons/Connect.d.ts +3 -0
- package/dist/components/Icons/Copied.d.ts +2 -0
- package/dist/components/Icons/Copy.d.ts +2 -0
- package/dist/components/Icons/Create.d.ts +3 -0
- package/dist/components/Icons/CreditCardDots.d.ts +2 -0
- package/dist/components/Icons/CryptoComIcon.d.ts +2 -0
- package/dist/components/Icons/Disconnect.d.ts +2 -0
- package/dist/components/Icons/DisconnectSq.d.ts +4 -0
- package/dist/components/Icons/Dropdown.d.ts +2 -0
- package/dist/components/Icons/EthereumIcon.d.ts +4 -0
- package/dist/components/Icons/EtoroIcon.d.ts +2 -0
- package/dist/components/Icons/EtradeIcon.d.ts +2 -0
- package/dist/components/Icons/Explore.d.ts +2 -0
- package/dist/components/Icons/ExternalLink.d.ts +2 -0
- package/dist/components/Icons/FunArrows.d.ts +5 -0
- package/dist/components/Icons/FunBackIcon.d.ts +2 -0
- package/dist/components/Icons/GateIo.d.ts +2 -0
- package/dist/components/Icons/GeminiIcon.d.ts +2 -0
- package/dist/components/Icons/HuobiIcon.d.ts +2 -0
- package/dist/components/Icons/Icons.css.d.ts +3 -0
- package/dist/components/Icons/Info.d.ts +3 -0
- package/dist/components/Icons/KrakenIcon.d.ts +2 -0
- package/dist/components/Icons/KucoinIcon.d.ts +2 -0
- package/dist/components/Icons/LightningIcon.d.ts +2 -0
- package/dist/components/Icons/LinkIcon.d.ts +2 -0
- package/dist/components/Icons/Login.d.ts +3 -0
- package/dist/components/Icons/LogoutIcon.d.ts +2 -0
- package/dist/components/Icons/MastercardIcon.d.ts +2 -0
- package/dist/components/Icons/MmFox.d.ts +2 -0
- package/dist/components/Icons/NoAssetsFoundIcon.d.ts +4 -0
- package/dist/components/Icons/OkcoinIcon.d.ts +2 -0
- package/dist/components/Icons/OkxIcon.d.ts +2 -0
- package/dist/components/Icons/PasskeyIcon.d.ts +2 -0
- package/dist/components/Icons/PaymentMethodIcons.d.ts +5 -0
- package/dist/components/Icons/PlusIcon.d.ts +2 -0
- package/dist/components/Icons/ProfileIcon.d.ts +2 -0
- package/dist/components/Icons/PublicIcon.d.ts +2 -0
- package/dist/components/Icons/ReceiptIcon.d.ts +2 -0
- package/dist/components/Icons/Refresh.d.ts +3 -0
- package/dist/components/Icons/RobinhoodIcon.d.ts +2 -0
- package/dist/components/Icons/Scan.d.ts +3 -0
- package/dist/components/Icons/SearchIcon.d.ts +4 -0
- package/dist/components/Icons/SettingsIcon.d.ts +2 -0
- package/dist/components/Icons/SocialMediaIcons.d.ts +4 -0
- package/dist/components/Icons/Spinner.d.ts +5 -0
- package/dist/components/Icons/StEthIcon.d.ts +2 -0
- package/dist/components/Icons/StashIcon.d.ts +2 -0
- package/dist/components/Icons/Success.d.ts +2 -0
- package/dist/components/Icons/SuccessNoBorder.d.ts +2 -0
- package/dist/components/Icons/SwapIcon.d.ts +2 -0
- package/dist/components/Icons/SwitchAccount.d.ts +2 -0
- package/dist/components/Icons/TransferIcon.d.ts +2 -0
- package/dist/components/Icons/USDCIcon.d.ts +2 -0
- package/dist/components/Icons/WalletIcon.d.ts +3 -0
- package/dist/components/Icons/WeBullIcon.d.ts +2 -0
- package/dist/components/Icons/WhiteDotIcon.d.ts +2 -0
- package/dist/components/InfoButton/InfoButton.d.ts +5 -0
- package/dist/components/MenuButton/MenuButton.css.d.ts +1 -0
- package/dist/components/MenuButton/MenuButton.d.ts +9 -0
- package/dist/components/ModalSelection/ModalSelection.css.d.ts +1 -0
- package/dist/components/ModalSelection/ModalSelection.d.ts +17 -0
- package/dist/components/ProfileDetails/EoaProfileDetails.d.ts +15 -0
- package/dist/components/ProfileDetails/FunWalletProfileDetails.d.ts +19 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWActivityHistory/FWActivityHistory.css.d.ts +7 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWActivityHistory/FWActivityHistory.d.ts +5 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWBridge.d.ts +9 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWDeposit.d.ts +11 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHome.css.d.ts +17 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHomeCheckoutSection.d.ts +4 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHomeTokenDisplayRow.d.ts +4 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/index.d.ts +6 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.css.d.ts +7 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.d.ts +10 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSwap.d.ts +5 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FunArrowItem.d.ts +4 -0
- package/dist/components/ProfileDetails/FunWalletProfileViews/FunSelectionSection.d.ts +11 -0
- package/dist/components/ProfileDetails/ProfileDetailsAction.d.ts +10 -0
- package/dist/components/QRCode/QRCode.d.ts +13 -0
- package/dist/components/SignIn/SignIn.d.ts +5 -0
- package/dist/components/SkeletalLoader/SkeletalLoader.css.d.ts +1 -0
- package/dist/components/SkeletalLoader/SkeletalLoader.d.ts +2 -0
- package/dist/components/Text/Text.d.ts +18 -0
- package/dist/components/TwoFaInputField/FunTwoFaInput.d.ts +10 -0
- package/dist/components/Txs/TxItem.d.ts +7 -0
- package/dist/components/Txs/TxList.d.ts +7 -0
- package/dist/components/Txs/Txs.css.d.ts +2 -0
- package/dist/components/index.css +1584 -513
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +3 -3
- package/dist/consts/assets.d.ts +26 -0
- package/dist/consts/funkit.d.ts +9 -0
- package/dist/css/animations.css.d.ts +9 -0
- package/dist/css/atoms.d.ts +6 -0
- package/dist/css/cssObjectFromTheme.d.ts +6 -0
- package/dist/css/cssStringFromTheme.d.ts +4 -0
- package/dist/css/reset.css.d.ts +14 -0
- package/dist/css/sprinkles.css.d.ts +3492 -0
- package/dist/css/touchableStyles.css.d.ts +4 -0
- package/dist/css/touchableStyles.d.ts +8 -0
- package/dist/hooks/useChainId.d.ts +1 -0
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +31 -0
- package/dist/hooks/useCheckoutStateBooleans.d.ts +9 -0
- package/dist/hooks/useConnectionStatus.d.ts +7 -0
- package/dist/hooks/useDebouncedCallback.d.ts +1 -0
- package/dist/hooks/useFunListeners.d.ts +8 -0
- package/dist/hooks/useIsMounted.d.ts +1 -0
- package/dist/hooks/useMainnet.d.ts +4 -0
- package/dist/hooks/useMainnetEnsAvatar.d.ts +1 -0
- package/dist/hooks/useMainnetEnsName.d.ts +1 -0
- package/dist/hooks/useMesh.d.ts +32 -0
- package/dist/hooks/useSymbolRefresh.d.ts +7 -0
- package/dist/hooks/useWindowSize.d.ts +4 -0
- package/dist/index.css +1584 -513
- package/dist/index.d.ts +18 -0
- package/dist/index.js +3 -3
- package/dist/locales/index.d.ts +3 -0
- package/dist/themes/baseTheme.d.ts +25 -0
- package/dist/themes/darkTheme.d.ts +85 -0
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.d.ts +85 -0
- package/dist/themes/lightTheme.js +1 -1
- package/dist/transactions/TransactionStoreContext.d.ts +151 -0
- package/dist/transactions/transactionStore.d.ts +21 -0
- package/dist/transactions/useAddRecentTransaction.d.ts +2 -0
- package/dist/transactions/useClearRecentTransactions.d.ts +1 -0
- package/dist/transactions/useRecentTransactions.d.ts +2 -0
- package/dist/types.d.ts +4 -0
- package/dist/utils/Logger.d.ts +25 -0
- package/dist/utils/browsers.d.ts +13 -0
- package/dist/utils/chainToExplorerUrl.d.ts +2 -0
- package/dist/utils/checkout.d.ts +99 -0
- package/dist/utils/colors.d.ts +3 -0
- package/dist/utils/emailandPhoneValidator.d.ts +5 -0
- package/dist/utils/flatten.d.ts +1 -0
- package/dist/utils/formatNumber.d.ts +53 -0
- package/dist/utils/formatTimestamp.d.ts +1 -0
- package/dist/utils/funkitProvider.d.ts +6 -0
- package/dist/utils/funwallet.d.ts +1 -0
- package/dist/utils/getWalletConnectUri.d.ts +2 -0
- package/dist/utils/groupBy.d.ts +1 -0
- package/dist/utils/indexBy.d.ts +1 -0
- package/dist/utils/isMobile.d.ts +5 -0
- package/dist/utils/isNotNullish.d.ts +1 -0
- package/dist/utils/locale.d.ts +1 -0
- package/dist/utils/mesh.d.ts +57 -0
- package/dist/utils/moonpay.d.ts +1 -0
- package/dist/utils/omitUndefinedValues.d.ts +1 -0
- package/dist/utils/platforms.d.ts +10 -0
- package/dist/wallets/Wallet.d.ts +86 -0
- package/dist/wallets/connectorsForWallets.d.ts +2 -0
- package/dist/wallets/downloadUrls.d.ts +4 -0
- package/dist/wallets/getDefaultWallets.d.ts +11 -0
- package/dist/wallets/getInjectedConnector.d.ts +10 -0
- package/dist/wallets/getWalletConnectConnector.d.ts +26 -0
- package/dist/wallets/recentWalletIds.d.ts +2 -0
- package/dist/wallets/useWalletConnectors.d.ts +13 -0
- package/dist/wallets/walletConnectors/@funkitConnectWallet/funkitConnectWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.d.ts +18 -0
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +39 -0
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/braveWallet/braveWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/{chunk-WXWQQHAQ.js → chunk-363R4ANA.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-W4DY35PZ.js → chunk-3AGSQ2RN.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-PATI3A3F.js → chunk-3DY3HAMM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ECNJY6H5.js → chunk-3EHPYNDW.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-74BR2RAM.js → chunk-5FDGJMHJ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-3YVOYNPH.js → chunk-AM2WFIQL.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-D76EMZT2.js → chunk-API5X5WH.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-BBUYSZBE.js +52 -0
- package/dist/wallets/walletConnectors/{chunk-RLZP75FI.js → chunk-BBVH7CPS.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-JARWK7S5.js → chunk-BG2VHSGN.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-NJGDUFM2.js → chunk-BUX4O2MX.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-JVF24YQM.js → chunk-CJA6ERXY.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-YJR5S7NP.js → chunk-EHO5SY4G.js} +4 -4
- package/dist/wallets/walletConnectors/chunk-FCZN3LHW.js +71 -0
- package/dist/wallets/walletConnectors/chunk-FEDNFTC5.js +71 -0
- package/dist/wallets/walletConnectors/{chunk-OH3HGTQV.js → chunk-G62ST53R.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-GAP7NFIO.js +84 -0
- package/dist/wallets/walletConnectors/{chunk-K4AO45B3.js → chunk-J3HOIBZW.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-JEPFSTAY.js +71 -0
- package/dist/wallets/walletConnectors/{chunk-M5VGZ2QW.js → chunk-JEVYZEBJ.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-JZNHIWCA.js +114 -0
- package/dist/wallets/walletConnectors/chunk-K5J2FLUB.js +226 -0
- package/dist/wallets/walletConnectors/{chunk-JC5DQVHX.js → chunk-KQ3NBNAM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-EUSM6MRB.js → chunk-OJAMLRYU.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-ZGVEVXA7.js → chunk-PX5UW3Z2.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-QEJK5CFP.js +102 -0
- package/dist/wallets/walletConnectors/{chunk-EBNKDT5H.js → chunk-QOK4O2YL.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-RZE4WHVP.js +112 -0
- package/dist/wallets/walletConnectors/{chunk-KGIRU665.js → chunk-SMDKR4XA.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-SMEQQ574.js +117 -0
- package/dist/wallets/walletConnectors/{chunk-7HTS7H5B.js → chunk-TOIRQMDJ.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-VSCNQC5L.js +105 -0
- package/dist/wallets/walletConnectors/chunk-WQ5A5VAG.js +113 -0
- package/dist/wallets/walletConnectors/{chunk-237HEA4B.js → chunk-WSYSB5XX.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-YK74CZ2K.js +110 -0
- package/dist/wallets/walletConnectors/{chunk-IVIQBLOK.js → chunk-YUE47K7K.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-ZXXXGTCN.js +81 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.d.ts +15 -0
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.d.ts +22 -0
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.d.ts +24 -0
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/desigWallet/desigWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.d.ts +11 -0
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frameWallet/frameWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.d.ts +22 -0
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.d.ts +41 -0
- package/dist/wallets/walletConnectors/index.js +60 -60
- package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.d.ts +17 -0
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/mewWallet/mewWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.d.ts +17 -0
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
- package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.d.ts +11 -0
- package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.d.ts +17 -0
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/safeWallet/safeWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.d.ts +12 -0
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.d.ts +22 -0
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.d.ts +12 -0
- package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.d.ts +12 -0
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.d.ts +17 -0
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.d.ts +22 -0
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +2 -2
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.d.ts +16 -0
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
- package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.d.ts +12 -0
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.d.ts +7 -0
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.d.ts +17 -0
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +7 -5
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
isAndroid,
|
|
4
|
+
isIOS
|
|
5
|
+
} from "./chunk-ZOLACFTK.js";
|
|
6
|
+
import {
|
|
7
|
+
getWalletConnectConnector,
|
|
8
|
+
getWalletConnectUri
|
|
9
|
+
} from "./chunk-OJAMLRYU.js";
|
|
10
|
+
|
|
11
|
+
// src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
|
|
12
|
+
import { MetaMaskConnector } from "wagmi/connectors/metaMask";
|
|
13
|
+
function isMetaMask(ethereum) {
|
|
14
|
+
if (!ethereum?.isMetaMask) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
if (ethereum.isBraveWallet && !ethereum._events && !ethereum._state) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
if (ethereum.isApexWallet) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
if (ethereum.isAvalanche) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
if (ethereum.isBackpack) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
if (ethereum.isBifrost) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
if (ethereum.isBitKeep) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
if (ethereum.isBitski) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
if (ethereum.isBlockWallet) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
if (ethereum.isCoinbaseWallet) {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
if (ethereum.isDawn) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
if (ethereum.isEnkrypt) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
if (ethereum.isExodus) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
if (ethereum.isFrame) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
if (ethereum.isFrontier) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
if (ethereum.isGamestop) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
if (ethereum.isHyperPay) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
if (ethereum.isImToken) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
if (ethereum.isKuCoinWallet) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
if (ethereum.isMathWallet) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
if (ethereum.isOkxWallet || ethereum.isOKExWallet) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
if (ethereum.isOneInchIOSWallet || ethereum.isOneInchAndroidWallet) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
if (ethereum.isOpera) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (ethereum.isPhantom) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
if (ethereum.isPortal) {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
if (ethereum.isRabby) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
if (ethereum.isRainbow) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
if (ethereum.isStatus) {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
if (ethereum.isTalisman) {
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
if (ethereum.isTally) {
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
104
|
+
if (ethereum.isTokenPocket) {
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
if (ethereum.isTokenary) {
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
if (ethereum.isTrust || ethereum.isTrustWallet) {
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
if (ethereum.isXDEFI) {
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
if (ethereum.isZeal) {
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
if (ethereum.isZerion) {
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
var metaMaskWallet = ({
|
|
125
|
+
chains,
|
|
126
|
+
projectId,
|
|
127
|
+
walletConnectOptions,
|
|
128
|
+
walletConnectVersion = "2",
|
|
129
|
+
...options
|
|
130
|
+
}) => {
|
|
131
|
+
const providers = typeof window !== "undefined" && window.ethereum?.providers;
|
|
132
|
+
const isMetaMaskInjected = typeof window !== "undefined" && typeof window.ethereum !== "undefined" && (window.ethereum.providers?.some(isMetaMask) || window.ethereum.isMetaMask);
|
|
133
|
+
const shouldUseWalletConnect = !isMetaMaskInjected;
|
|
134
|
+
return {
|
|
135
|
+
id: "metaMask",
|
|
136
|
+
name: "MetaMask",
|
|
137
|
+
iconUrl: async () => (await import("./metaMaskWallet-ORHUNQRP.js")).default,
|
|
138
|
+
iconAccent: "#f6851a",
|
|
139
|
+
iconBackground: "#fff",
|
|
140
|
+
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
141
|
+
downloadUrls: {
|
|
142
|
+
android: "https://play.google.com/store/apps/details?id=io.metamask",
|
|
143
|
+
ios: "https://apps.apple.com/us/app/metamask/id1438144202",
|
|
144
|
+
mobile: "https://metamask.io/download",
|
|
145
|
+
qrCode: "https://metamask.io/download",
|
|
146
|
+
chrome: "https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",
|
|
147
|
+
edge: "https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",
|
|
148
|
+
firefox: "https://addons.mozilla.org/firefox/addon/ether-metamask",
|
|
149
|
+
opera: "https://addons.opera.com/extensions/details/metamask-10",
|
|
150
|
+
browserExtension: "https://metamask.io/download"
|
|
151
|
+
},
|
|
152
|
+
createConnector: () => {
|
|
153
|
+
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
154
|
+
projectId,
|
|
155
|
+
chains,
|
|
156
|
+
version: walletConnectVersion,
|
|
157
|
+
options: walletConnectOptions
|
|
158
|
+
}) : new MetaMaskConnector({
|
|
159
|
+
chains,
|
|
160
|
+
options: {
|
|
161
|
+
getProvider: () => providers ? providers.find(isMetaMask) : typeof window !== "undefined" ? window.ethereum : void 0,
|
|
162
|
+
...options
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
const getUri = async () => {
|
|
166
|
+
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
167
|
+
return isAndroid() ? uri : isIOS() ? `metamask://wc?uri=${encodeURIComponent(uri)}` : `https://metamask.app.link/wc?uri=${encodeURIComponent(uri)}`;
|
|
168
|
+
};
|
|
169
|
+
return {
|
|
170
|
+
connector,
|
|
171
|
+
mobile: {
|
|
172
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
173
|
+
},
|
|
174
|
+
qrCode: shouldUseWalletConnect ? {
|
|
175
|
+
getUri,
|
|
176
|
+
instructions: {
|
|
177
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
178
|
+
steps: [
|
|
179
|
+
{
|
|
180
|
+
description: "wallet_connectors.metamask.qr_code.step1.description",
|
|
181
|
+
step: "install",
|
|
182
|
+
title: "wallet_connectors.metamask.qr_code.step1.title"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
description: "wallet_connectors.metamask.qr_code.step2.description",
|
|
186
|
+
step: "create",
|
|
187
|
+
title: "wallet_connectors.metamask.qr_code.step2.title"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
description: "wallet_connectors.metamask.qr_code.step3.description",
|
|
191
|
+
step: "refresh",
|
|
192
|
+
title: "wallet_connectors.metamask.qr_code.step3.title"
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
} : void 0,
|
|
197
|
+
extension: {
|
|
198
|
+
instructions: {
|
|
199
|
+
learnMoreUrl: "https://metamask.io/faqs/",
|
|
200
|
+
steps: [
|
|
201
|
+
{
|
|
202
|
+
description: "wallet_connectors.metamask.extension.step1.description",
|
|
203
|
+
step: "install",
|
|
204
|
+
title: "wallet_connectors.metamask.extension.step1.title"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
description: "wallet_connectors.metamask.extension.step2.description",
|
|
208
|
+
step: "create",
|
|
209
|
+
title: "wallet_connectors.metamask.extension.step2.title"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
description: "wallet_connectors.metamask.extension.step3.description",
|
|
213
|
+
step: "refresh",
|
|
214
|
+
title: "wallet_connectors.metamask.extension.step3.title"
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export {
|
|
225
|
+
metaMaskWallet
|
|
226
|
+
};
|
|
@@ -46,7 +46,7 @@ var FunLogger = class {
|
|
|
46
46
|
datadogLogs.logger.debug(title, this.decorateLogDataForDdog(data));
|
|
47
47
|
}
|
|
48
48
|
if (!isProd || this.isDebugMode) {
|
|
49
|
-
console.debug(title, data);
|
|
49
|
+
console.debug(title, data || "");
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
onInfo({ title, data }) {
|
|
@@ -55,7 +55,7 @@ var FunLogger = class {
|
|
|
55
55
|
datadogLogs.logger.info(title, this.decorateLogDataForDdog(data));
|
|
56
56
|
}
|
|
57
57
|
if (!isProd || this.isDebugMode) {
|
|
58
|
-
console.log(title, data);
|
|
58
|
+
console.log(title, data || "");
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
onWarn({ title, data }) {
|
|
@@ -64,7 +64,7 @@ var FunLogger = class {
|
|
|
64
64
|
datadogLogs.logger.warn(title, this.decorateLogDataForDdog(data));
|
|
65
65
|
}
|
|
66
66
|
if (!isProd || this.isDebugMode) {
|
|
67
|
-
console.warn(title, data);
|
|
67
|
+
console.warn(title, data || "");
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
onError({ title, error, data }) {
|
|
@@ -73,7 +73,7 @@ var FunLogger = class {
|
|
|
73
73
|
datadogLogs.logger.error(title, this.decorateLogDataForDdog(data), error);
|
|
74
74
|
}
|
|
75
75
|
if (!isProd || this.isDebugMode) {
|
|
76
|
-
console.error(title, data, error);
|
|
76
|
+
console.error(title, data || "", error);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
log(title, data) {
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
isMobile
|
|
4
|
+
} from "./chunk-ZOLACFTK.js";
|
|
5
|
+
import {
|
|
6
|
+
getWalletConnectConnector,
|
|
7
|
+
getWalletConnectUri
|
|
8
|
+
} from "./chunk-OJAMLRYU.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
|
|
11
|
+
import { InjectedConnector } from "wagmi/connectors/injected";
|
|
12
|
+
var tokenPocketWallet = ({
|
|
13
|
+
chains,
|
|
14
|
+
projectId,
|
|
15
|
+
walletConnectOptions,
|
|
16
|
+
walletConnectVersion = "2"
|
|
17
|
+
}) => {
|
|
18
|
+
const isTokenPocketInjected = typeof window !== "undefined" && window.ethereum?.isTokenPocket === true;
|
|
19
|
+
const shouldUseWalletConnect = !isTokenPocketInjected;
|
|
20
|
+
return {
|
|
21
|
+
id: "tokenPocket",
|
|
22
|
+
name: "TokenPocket",
|
|
23
|
+
iconUrl: async () => (await import("./tokenPocketWallet-UYD66DEM.js")).default,
|
|
24
|
+
iconBackground: "#2980FE",
|
|
25
|
+
installed: !shouldUseWalletConnect ? isTokenPocketInjected : void 0,
|
|
26
|
+
downloadUrls: {
|
|
27
|
+
chrome: "https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",
|
|
28
|
+
browserExtension: "https://extension.tokenpocket.pro/",
|
|
29
|
+
android: "https://play.google.com/store/apps/details?id=vip.mytokenpocket",
|
|
30
|
+
ios: "https://apps.apple.com/us/app/tp-global-wallet/id6444625622",
|
|
31
|
+
qrCode: "https://tokenpocket.pro/en/download/app",
|
|
32
|
+
mobile: "https://tokenpocket.pro/en/download/app"
|
|
33
|
+
},
|
|
34
|
+
createConnector: () => {
|
|
35
|
+
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
36
|
+
chains,
|
|
37
|
+
projectId,
|
|
38
|
+
options: walletConnectOptions,
|
|
39
|
+
version: walletConnectVersion
|
|
40
|
+
}) : new InjectedConnector({ chains });
|
|
41
|
+
const getUri = async () => {
|
|
42
|
+
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
43
|
+
return isMobile() ? `tpoutside://wc?uri=${encodeURIComponent(uri)}` : uri;
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
connector,
|
|
47
|
+
mobile: {
|
|
48
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
49
|
+
},
|
|
50
|
+
qrCode: shouldUseWalletConnect ? {
|
|
51
|
+
getUri,
|
|
52
|
+
instructions: {
|
|
53
|
+
learnMoreUrl: "https://help.tokenpocket.pro/en/",
|
|
54
|
+
steps: [
|
|
55
|
+
{
|
|
56
|
+
description: "wallet_connectors.token_pocket.qr_code.step1.description",
|
|
57
|
+
step: "install",
|
|
58
|
+
title: "wallet_connectors.token_pocket.qr_code.step1.title"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
description: "wallet_connectors.token_pocket.qr_code.step2.description",
|
|
62
|
+
step: "create",
|
|
63
|
+
title: "wallet_connectors.token_pocket.qr_code.step2.title"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
description: "wallet_connectors.token_pocket.qr_code.step3.description",
|
|
67
|
+
step: "scan",
|
|
68
|
+
title: "wallet_connectors.token_pocket.qr_code.step3.title"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
} : void 0,
|
|
73
|
+
extension: {
|
|
74
|
+
instructions: {
|
|
75
|
+
learnMoreUrl: "https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",
|
|
76
|
+
steps: [
|
|
77
|
+
{
|
|
78
|
+
description: "wallet_connectors.token_pocket.extension.step1.description",
|
|
79
|
+
step: "install",
|
|
80
|
+
title: "wallet_connectors.token_pocket.extension.step1.title"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
description: "wallet_connectors.token_pocket.extension.step2.description",
|
|
84
|
+
step: "create",
|
|
85
|
+
title: "wallet_connectors.token_pocket.extension.step2.title"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
description: "wallet_connectors.token_pocket.extension.step3.description",
|
|
89
|
+
step: "refresh",
|
|
90
|
+
title: "wallet_connectors.token_pocket.extension.step3.title"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export {
|
|
101
|
+
tokenPocketWallet
|
|
102
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector,
|
|
4
|
+
getWalletConnectUri
|
|
5
|
+
} from "./chunk-OJAMLRYU.js";
|
|
6
|
+
import {
|
|
7
|
+
isAndroid
|
|
8
|
+
} from "./chunk-ZOLACFTK.js";
|
|
9
|
+
|
|
10
|
+
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
11
|
+
import { InjectedConnector } from "wagmi/connectors/injected";
|
|
12
|
+
var bitgetWallet = ({
|
|
13
|
+
chains,
|
|
14
|
+
projectId,
|
|
15
|
+
walletConnectOptions,
|
|
16
|
+
walletConnectVersion = "2",
|
|
17
|
+
...options
|
|
18
|
+
}) => {
|
|
19
|
+
const isBitKeepInjected = typeof window !== "undefined" && window.bitkeep !== void 0 && window.bitkeep.ethereum !== void 0 && window.bitkeep.ethereum.isBitKeep === true;
|
|
20
|
+
const shouldUseWalletConnect = !isBitKeepInjected;
|
|
21
|
+
return {
|
|
22
|
+
id: "bitget",
|
|
23
|
+
name: "Bitget Wallet",
|
|
24
|
+
iconUrl: async () => (await import("./bitgetWallet-JVNCB4EB.js")).default,
|
|
25
|
+
iconAccent: "#f6851a",
|
|
26
|
+
iconBackground: "#fff",
|
|
27
|
+
installed: !shouldUseWalletConnect ? isBitKeepInjected : void 0,
|
|
28
|
+
downloadUrls: {
|
|
29
|
+
android: "https://web3.bitget.com/en/wallet-download?type=0",
|
|
30
|
+
ios: "https://apps.apple.com/app/bitkeep/id1395301115",
|
|
31
|
+
mobile: "https://web3.bitget.com/en/wallet-download?type=2",
|
|
32
|
+
qrCode: "https://web3.bitget.com/en/wallet-download",
|
|
33
|
+
chrome: "https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",
|
|
34
|
+
browserExtension: "https://web3.bitget.com/en/wallet-download"
|
|
35
|
+
},
|
|
36
|
+
createConnector: () => {
|
|
37
|
+
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
38
|
+
chains,
|
|
39
|
+
options: walletConnectOptions,
|
|
40
|
+
projectId,
|
|
41
|
+
version: walletConnectVersion
|
|
42
|
+
}) : new InjectedConnector({
|
|
43
|
+
chains,
|
|
44
|
+
options: {
|
|
45
|
+
getProvider: () => window.bitkeep.ethereum,
|
|
46
|
+
...options
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const getUri = async () => {
|
|
50
|
+
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
51
|
+
return isAndroid() ? uri : `bitkeep://wc?uri=${encodeURIComponent(uri)}`;
|
|
52
|
+
};
|
|
53
|
+
return {
|
|
54
|
+
connector,
|
|
55
|
+
extension: {
|
|
56
|
+
instructions: {
|
|
57
|
+
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
58
|
+
steps: [
|
|
59
|
+
{
|
|
60
|
+
description: "wallet_connectors.bitget.extension.step1.description",
|
|
61
|
+
step: "install",
|
|
62
|
+
title: "wallet_connectors.bitget.extension.step1.title"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
description: "wallet_connectors.bitget.extension.step2.description",
|
|
66
|
+
step: "create",
|
|
67
|
+
title: "wallet_connectors.bitget.extension.step2.title"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
description: "wallet_connectors.bitget.extension.step3.description",
|
|
71
|
+
step: "refresh",
|
|
72
|
+
title: "wallet_connectors.bitget.extension.step3.description"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
mobile: {
|
|
78
|
+
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
79
|
+
},
|
|
80
|
+
qrCode: shouldUseWalletConnect ? {
|
|
81
|
+
getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
|
|
82
|
+
instructions: {
|
|
83
|
+
learnMoreUrl: "https://web3.bitget.com/en/academy",
|
|
84
|
+
steps: [
|
|
85
|
+
{
|
|
86
|
+
description: "wallet_connectors.bitget.qr_code.step1.description",
|
|
87
|
+
step: "install",
|
|
88
|
+
title: "wallet_connectors.bitget.qr_code.step1.title"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
description: "wallet_connectors.bitget.qr_code.step2.description",
|
|
92
|
+
step: "create",
|
|
93
|
+
title: "wallet_connectors.bitget.qr_code.step2.title"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
description: "wallet_connectors.bitget.qr_code.step3.description",
|
|
97
|
+
step: "scan",
|
|
98
|
+
title: "wallet_connectors.bitget.qr_code.step3.title"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
} : void 0
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
var bitKeepWallet = bitgetWallet;
|
|
108
|
+
|
|
109
|
+
export {
|
|
110
|
+
bitgetWallet,
|
|
111
|
+
bitKeepWallet
|
|
112
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector,
|
|
4
|
+
getWalletConnectUri
|
|
5
|
+
} from "./chunk-OJAMLRYU.js";
|
|
6
|
+
import {
|
|
7
|
+
getInjectedConnector,
|
|
8
|
+
hasInjectedProvider
|
|
9
|
+
} from "./chunk-UZ5XLPAW.js";
|
|
10
|
+
import {
|
|
11
|
+
isMobile
|
|
12
|
+
} from "./chunk-ZOLACFTK.js";
|
|
13
|
+
|
|
14
|
+
// src/wallets/walletConnectors/trustWallet/trustWallet.ts
|
|
15
|
+
var trustWallet = ({
|
|
16
|
+
chains,
|
|
17
|
+
projectId,
|
|
18
|
+
walletConnectOptions,
|
|
19
|
+
walletConnectVersion = "2",
|
|
20
|
+
...options
|
|
21
|
+
}) => {
|
|
22
|
+
const isTrustWalletInjected = isMobile() ? hasInjectedProvider("isTrust") : hasInjectedProvider("isTrustWallet");
|
|
23
|
+
const shouldUseWalletConnect = !isTrustWalletInjected;
|
|
24
|
+
return {
|
|
25
|
+
id: "trust",
|
|
26
|
+
name: "Trust Wallet",
|
|
27
|
+
iconUrl: async () => (await import("./trustWallet-XIQD5AVI.js")).default,
|
|
28
|
+
installed: isTrustWalletInjected || void 0,
|
|
29
|
+
iconAccent: "#3375BB",
|
|
30
|
+
iconBackground: "#fff",
|
|
31
|
+
downloadUrls: {
|
|
32
|
+
android: "https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",
|
|
33
|
+
ios: "https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",
|
|
34
|
+
mobile: "https://trustwallet.com/download",
|
|
35
|
+
qrCode: "https://trustwallet.com/download",
|
|
36
|
+
chrome: "https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",
|
|
37
|
+
browserExtension: "https://trustwallet.com/browser-extension"
|
|
38
|
+
},
|
|
39
|
+
createConnector: () => {
|
|
40
|
+
const getUriMobile = async () => {
|
|
41
|
+
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
42
|
+
return `trust://wc?uri=${encodeURIComponent(uri)}`;
|
|
43
|
+
};
|
|
44
|
+
const getUriQR = async () => {
|
|
45
|
+
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
46
|
+
return uri;
|
|
47
|
+
};
|
|
48
|
+
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
49
|
+
projectId,
|
|
50
|
+
chains,
|
|
51
|
+
version: walletConnectVersion,
|
|
52
|
+
options: walletConnectOptions
|
|
53
|
+
}) : isMobile() ? getInjectedConnector({ flag: "isTrust", chains, options }) : getInjectedConnector({ flag: "isTrustWallet", chains, options });
|
|
54
|
+
const mobileConnector = {
|
|
55
|
+
getUri: shouldUseWalletConnect ? getUriMobile : void 0
|
|
56
|
+
};
|
|
57
|
+
let qrConnector = void 0;
|
|
58
|
+
if (shouldUseWalletConnect) {
|
|
59
|
+
qrConnector = {
|
|
60
|
+
getUri: getUriQR,
|
|
61
|
+
instructions: {
|
|
62
|
+
learnMoreUrl: "https://trustwallet.com/",
|
|
63
|
+
steps: [
|
|
64
|
+
{
|
|
65
|
+
description: "wallet_connectors.trust.qr_code.step1.description",
|
|
66
|
+
step: "install",
|
|
67
|
+
title: "wallet_connectors.trust.qr_code.step1.title"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
description: "wallet_connectors.trust.qr_code.step2.description",
|
|
71
|
+
step: "create",
|
|
72
|
+
title: "wallet_connectors.trust.qr_code.step2.title"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
description: "wallet_connectors.trust.qr_code.step3.description",
|
|
76
|
+
step: "scan",
|
|
77
|
+
title: "wallet_connectors.trust.qr_code.step3.title"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
const extensionConnector = {
|
|
84
|
+
instructions: {
|
|
85
|
+
learnMoreUrl: "https://trustwallet.com/browser-extension",
|
|
86
|
+
steps: [
|
|
87
|
+
{
|
|
88
|
+
description: "wallet_connectors.trust.extension.step1.description",
|
|
89
|
+
step: "install",
|
|
90
|
+
title: "wallet_connectors.trust.extension.step1.title"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
description: "wallet_connectors.trust.extension.step2.description",
|
|
94
|
+
step: "create",
|
|
95
|
+
title: "wallet_connectors.trust.extension.step2.title"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
description: "wallet_connectors.trust.extension.step3.description",
|
|
99
|
+
step: "refresh",
|
|
100
|
+
title: "wallet_connectors.trust.extension.step3.title"
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
return {
|
|
106
|
+
connector,
|
|
107
|
+
mobile: mobileConnector,
|
|
108
|
+
qrCode: qrConnector,
|
|
109
|
+
extension: extensionConnector
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export {
|
|
116
|
+
trustWallet
|
|
117
|
+
};
|