@funkit/connect 0.1.7 → 0.1.9
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/{chunk-X5YTL45L.js → chunk-6NU6GSSJ.js} +6988 -6584
- package/dist/{chunk-3A7E2IPT.js → chunk-W7RO4DCA.js} +33 -14
- package/dist/{chunk-PKSFBURG.js → chunk-ZKI6VFDD.js} +24 -5
- package/dist/components/index.css +861 -341
- package/dist/components/index.js +3 -2
- package/dist/index.css +848 -328
- package/dist/index.js +65 -118
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/{chunk-4TBAMXD2.js → chunk-237HEA4B.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-7Q7X4HIR.js → chunk-3YVOYNPH.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-4HP4HVWX.js → chunk-74BR2RAM.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-C6BBHBY3.js → chunk-7HTS7H5B.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TM5A4D5D.js → chunk-D76EMZT2.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-WPGD3FGN.js → chunk-EBNKDT5H.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TFHNF64Z.js → chunk-ECNJY6H5.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-EUSM6MRB.js +158 -0
- package/dist/wallets/walletConnectors/{chunk-WCZ37NN2.js → chunk-IVIQBLOK.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-VDUTD5UR.js → chunk-JARWK7S5.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-PVTJW4KE.js → chunk-JC5DQVHX.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-QVJQ2MU7.js → chunk-JVF24YQM.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-T2DNUVKD.js → chunk-K4AO45B3.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-EINKDQQW.js → chunk-KGIRU665.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-JU27WJ7W.js → chunk-M5VGZ2QW.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-32KC4FTG.js → chunk-NJGDUFM2.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-C3X4W5P4.js → chunk-OH3HGTQV.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-K342MEBF.js → chunk-PATI3A3F.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HHEZNZRR.js → chunk-RLZP75FI.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HKBLG5YG.js → chunk-W4DY35PZ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-M4KIVTE3.js → chunk-WXWQQHAQ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-CESIYSTD.js → chunk-YJR5S7NP.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-RMJYZWKN.js → chunk-ZGVEVXA7.js} +1 -1
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +57 -57
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +2 -2
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +9 -6
- package/dist/__private__/index.d.ts +0 -8
- package/dist/chunk-VVHY6TFA.js +0 -24443
- package/dist/components/AccountModal/AccountModal.d.ts +0 -6
- package/dist/components/AsyncImage/AsyncImage.d.ts +0 -19
- package/dist/components/AsyncImage/useAsyncImage.d.ts +0 -3
- package/dist/components/Avatar/Avatar.d.ts +0 -9
- package/dist/components/Avatar/EmojiAvatar.d.ts +0 -2
- package/dist/components/Avatar/emojiAvatarForAddress.d.ts +0 -106
- package/dist/components/Box/Box.d.ts +0 -82
- package/dist/components/Button/ActionButton.d.ts +0 -14
- package/dist/components/ChainModal/ChainModal.css.d.ts +0 -2
- package/dist/components/ChainModal/ChainModal.d.ts +0 -6
- package/dist/components/CloseButton/CloseButton.d.ts +0 -5
- package/dist/components/ConnectButton/ConnectButton.d.ts +0 -28
- package/dist/components/ConnectButton/ConnectButtonRenderer.d.ts +0 -39
- package/dist/components/ConnectButton/abbreviateETHBalance.d.ts +0 -2
- package/dist/components/ConnectButton/formatAddress.d.ts +0 -1
- package/dist/components/ConnectButton/formatENS.d.ts +0 -1
- package/dist/components/ConnectModal/ConnectModalIntro.d.ts +0 -5
- package/dist/components/ConnectOptions/ConnectDetails.d.ts +0 -36
- package/dist/components/ConnectOptions/DesktopOptions.css.d.ts +0 -4
- package/dist/components/ConnectOptions/DesktopOptions.d.ts +0 -15
- package/dist/components/ConnectOptions/FunConnectOptions.d.ts +0 -11
- package/dist/components/ConnectOptions/MobileOptions.css.d.ts +0 -1
- package/dist/components/ConnectOptions/MobileOptions.d.ts +0 -4
- package/dist/components/Dialog/Dialog.css.d.ts +0 -5
- package/dist/components/Dialog/Dialog.d.ts +0 -12
- package/dist/components/Dialog/DialogContent.css.d.ts +0 -6
- package/dist/components/Dialog/DialogContent.d.ts +0 -12
- package/dist/components/Dialog/FocusTrap.d.ts +0 -2
- package/dist/components/Disclaimer/DisclaimerLink.d.ts +0 -5
- package/dist/components/Disclaimer/DisclaimerText.d.ts +0 -4
- package/dist/components/FunButton/FunBackButton.d.ts +0 -4
- package/dist/components/FunButton/FunButton.css.d.ts +0 -3
- package/dist/components/FunButton/FunButton.d.ts +0 -17
- package/dist/components/FunButton/FunIconButton.d.ts +0 -16
- package/dist/components/FunButton/FunLinkButton.d.ts +0 -8
- package/dist/components/FunButton/FunViewTxButton.d.ts +0 -4
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +0 -7
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +0 -8
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmation.css.d.ts +0 -7
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +0 -9
- package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +0 -15
- package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +0 -9
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.css.d.ts +0 -7
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +0 -12
- package/dist/components/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +0 -6
- package/dist/components/FunConfirmDialog/FunConfirmDialog.d.ts +0 -12
- package/dist/components/FunConnectModal/FunConnectModal.d.ts +0 -6
- package/dist/components/FunContainer/FunContainer.d.ts +0 -11
- package/dist/components/FunDevTestModal/FunDevTestModal.d.ts +0 -6
- package/dist/components/FunDivider/FunDivider.d.ts +0 -6
- package/dist/components/FunInput/FunInput.d.ts +0 -29
- package/dist/components/FunKeyValue/FunKeyValue.d.ts +0 -24
- package/dist/components/FunMeshTwoFactorStep/FunMeshTwoFactorStep.d.ts +0 -9
- package/dist/components/FunModalTitleSection/FunModalTitleSection.css.d.ts +0 -7
- package/dist/components/FunModalTitleSection/FunModalTitleSection.d.ts +0 -12
- package/dist/components/FunNotification/FunCheckoutNotification.d.ts +0 -6
- package/dist/components/FunNotification/FunNotification.d.ts +0 -12
- package/dist/components/FunOnramp/FunOnramp.css.d.ts +0 -7
- package/dist/components/FunOnramp/FunOnrampConfirmation.css.d.ts +0 -7
- package/dist/components/FunOnramp/FunOnrampConfirmationStep.d.ts +0 -17
- package/dist/components/FunOnramp/FunOnrampInputStep.d.ts +0 -8
- package/dist/components/FunOnramp/FunOnrampPrimaryItem.d.ts +0 -5
- package/dist/components/FunOnramp/FunOnrampProcessingStep.d.ts +0 -6
- package/dist/components/FunPayments/FunPaymentMeshType.css.d.ts +0 -7
- package/dist/components/FunPayments/FunPaymentMeshType.d.ts +0 -10
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +0 -52
- package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +0 -10
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +0 -13
- package/dist/components/FunPayments/FunPaymentSetup.d.ts +0 -18
- package/dist/components/FunPayments/FunPaymentTransferType.css.d.ts +0 -7
- package/dist/components/FunPayments/FunPaymentTransferType.d.ts +0 -6
- package/dist/components/FunPayments/FunPayments.css.d.ts +0 -7
- package/dist/components/FunProgressBar/FunHorizontalStepper.d.ts +0 -7
- package/dist/components/FunProgressBar/FunProgressBar.d.ts +0 -6
- package/dist/components/FunProgressBar/FunVerticalProgressBar.d.ts +0 -14
- package/dist/components/FunSelect/FunClickOutside.d.ts +0 -8
- package/dist/components/FunSelect/FunSelect.d.ts +0 -24
- package/dist/components/FunSignInFlow/FunSignInStep.css.d.ts +0 -2
- package/dist/components/FunSignInFlow/FunSignInStep.d.ts +0 -14
- package/dist/components/FunSignInFlow/FunWeb2ConnectingStep/FunWeb2ConnectingStep.css.d.ts +0 -7
- package/dist/components/FunSignInFlow/FunWeb2ConnectingStep/FunWeb2ConnectingStep.d.ts +0 -9
- package/dist/components/FunSignInFlow/FunWeb3ConnectingStep.css.d.ts +0 -7
- package/dist/components/FunSignInFlow/FunWeb3ConnectingStep.d.ts +0 -9
- package/dist/components/FunStates/FunErrorContent.d.ts +0 -10
- package/dist/components/FunTermsAndConditionsTextButton/FunTermsAndConditionsTextButton.d.ts +0 -2
- package/dist/components/FunToast/FunShortToast.css.d.ts +0 -10
- package/dist/components/FunToast/FunShortToast.d.ts +0 -3
- package/dist/components/FunToast/FunToast.d.ts +0 -18
- package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +0 -12
- package/dist/components/FunkitProvider/AppContext.d.ts +0 -25
- package/dist/components/FunkitProvider/AuthenticationContext.d.ts +0 -35
- package/dist/components/FunkitProvider/AvatarContext.d.ts +0 -9
- package/dist/components/FunkitProvider/CoolModeContext.d.ts +0 -2
- package/dist/components/FunkitProvider/FunToastContext.d.ts +0 -11
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +0 -130
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +0 -13
- package/dist/components/FunkitProvider/FunkitProvider.d.ts +0 -37
- package/dist/components/FunkitProvider/FunkitWalletProvider.d.ts +0 -17
- package/dist/components/FunkitProvider/I18nContext.d.ts +0 -9
- package/dist/components/FunkitProvider/ModalContext.d.ts +0 -41
- package/dist/components/FunkitProvider/ModalSizeContext.d.ts +0 -7
- package/dist/components/FunkitProvider/RainbowKitChainContext.d.ts +0 -19
- package/dist/components/FunkitProvider/ShowRecentTransactionsContext.d.ts +0 -2
- package/dist/components/FunkitProvider/provideRainbowKitChains.d.ts +0 -3
- package/dist/components/FunkitProvider/useCoolMode.d.ts +0 -2
- package/dist/components/FunkitProvider/useFingerprint.d.ts +0 -1
- package/dist/components/FunkitProvider/usePreloadImages.d.ts +0 -1
- package/dist/components/FunkitProvider/walletConnectDeepLink.d.ts +0 -5
- package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +0 -58
- package/dist/components/Icons/AcornsIcon.d.ts +0 -2
- package/dist/components/Icons/AlpacaIcon.d.ts +0 -2
- package/dist/components/Icons/Assets.d.ts +0 -3
- package/dist/components/Icons/Back.d.ts +0 -2
- package/dist/components/Icons/BinanceIcon.d.ts +0 -2
- package/dist/components/Icons/BitFlyerIcon.d.ts +0 -2
- package/dist/components/Icons/BitstampIcon.d.ts +0 -2
- package/dist/components/Icons/BridgeIcon.d.ts +0 -2
- package/dist/components/Icons/BybitIcon.d.ts +0 -2
- package/dist/components/Icons/Cancel.d.ts +0 -2
- package/dist/components/Icons/CexloIcon.d.ts +0 -2
- package/dist/components/Icons/ClockIcon.d.ts +0 -2
- package/dist/components/Icons/Close.d.ts +0 -2
- package/dist/components/Icons/Coinbase.d.ts +0 -2
- package/dist/components/Icons/CoinlistIcon.d.ts +0 -2
- package/dist/components/Icons/Connect.d.ts +0 -3
- package/dist/components/Icons/Copied.d.ts +0 -2
- package/dist/components/Icons/Copy.d.ts +0 -2
- package/dist/components/Icons/Create.d.ts +0 -3
- package/dist/components/Icons/CreditCardDots.d.ts +0 -2
- package/dist/components/Icons/CryptoComIcon.d.ts +0 -2
- package/dist/components/Icons/Disconnect.d.ts +0 -2
- package/dist/components/Icons/DisconnectSq.d.ts +0 -4
- package/dist/components/Icons/Dropdown.d.ts +0 -2
- package/dist/components/Icons/EthereumIcon.d.ts +0 -2
- package/dist/components/Icons/EtoroIcon.d.ts +0 -2
- package/dist/components/Icons/EtradeIcon.d.ts +0 -2
- package/dist/components/Icons/Explore.d.ts +0 -2
- package/dist/components/Icons/ExternalLink.d.ts +0 -2
- package/dist/components/Icons/FunArrows.d.ts +0 -5
- package/dist/components/Icons/FunBackIcon.d.ts +0 -2
- package/dist/components/Icons/GateIo.d.ts +0 -2
- package/dist/components/Icons/GeminiIcon.d.ts +0 -2
- package/dist/components/Icons/HuobiIcon.d.ts +0 -2
- package/dist/components/Icons/Icons.css.d.ts +0 -3
- package/dist/components/Icons/Info.d.ts +0 -3
- package/dist/components/Icons/KrakenIcon.d.ts +0 -2
- package/dist/components/Icons/KucoinIcon.d.ts +0 -2
- package/dist/components/Icons/LightningIcon.d.ts +0 -2
- package/dist/components/Icons/LinkIcon.d.ts +0 -2
- package/dist/components/Icons/Login.d.ts +0 -3
- package/dist/components/Icons/LogoutIcon.d.ts +0 -2
- package/dist/components/Icons/MastercardIcon.d.ts +0 -2
- package/dist/components/Icons/MmFox.d.ts +0 -2
- package/dist/components/Icons/NoAssetsFoundIcon.d.ts +0 -4
- package/dist/components/Icons/OkcoinIcon.d.ts +0 -2
- package/dist/components/Icons/OkxIcon.d.ts +0 -2
- package/dist/components/Icons/PasskeyIcon.d.ts +0 -2
- package/dist/components/Icons/PaymentMethodIcons.d.ts +0 -5
- package/dist/components/Icons/PlusIcon.d.ts +0 -2
- package/dist/components/Icons/ProfileIcon.d.ts +0 -2
- package/dist/components/Icons/PublicIcon.d.ts +0 -2
- package/dist/components/Icons/ReceiptIcon.d.ts +0 -2
- package/dist/components/Icons/Refresh.d.ts +0 -3
- package/dist/components/Icons/RobinhoodIcon.d.ts +0 -2
- package/dist/components/Icons/Scan.d.ts +0 -3
- package/dist/components/Icons/SearchIcon.d.ts +0 -4
- package/dist/components/Icons/SettingsIcon.d.ts +0 -2
- package/dist/components/Icons/SocialMediaIcons.d.ts +0 -4
- package/dist/components/Icons/Spinner.d.ts +0 -5
- package/dist/components/Icons/StEthIcon.d.ts +0 -2
- package/dist/components/Icons/StashIcon.d.ts +0 -2
- package/dist/components/Icons/Success.d.ts +0 -2
- package/dist/components/Icons/SuccessNoBorder.d.ts +0 -2
- package/dist/components/Icons/SwapIcon.d.ts +0 -2
- package/dist/components/Icons/SwitchAccount.d.ts +0 -2
- package/dist/components/Icons/TransferIcon.d.ts +0 -2
- package/dist/components/Icons/USDCIcon.d.ts +0 -2
- package/dist/components/Icons/WalletIcon.d.ts +0 -3
- package/dist/components/Icons/WeBullIcon.d.ts +0 -2
- package/dist/components/Icons/WhiteDotIcon.d.ts +0 -2
- package/dist/components/InfoButton/InfoButton.d.ts +0 -5
- package/dist/components/MenuButton/MenuButton.css.d.ts +0 -1
- package/dist/components/MenuButton/MenuButton.d.ts +0 -9
- package/dist/components/ModalSelection/ModalSelection.css.d.ts +0 -1
- package/dist/components/ModalSelection/ModalSelection.d.ts +0 -17
- package/dist/components/ProfileDetails/EoaProfileDetails.d.ts +0 -15
- package/dist/components/ProfileDetails/FunWalletProfileDetails.d.ts +0 -19
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWActivityHistory/FWActivityHistory.css.d.ts +0 -7
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWActivityHistory/FWActivityHistory.d.ts +0 -5
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWBridge.d.ts +0 -9
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWDeposit.d.ts +0 -11
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHome.css.d.ts +0 -17
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHomeCheckoutSection.d.ts +0 -4
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHomeTokenDisplayRow.d.ts +0 -4
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/index.d.ts +0 -6
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.css.d.ts +0 -7
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.d.ts +0 -10
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSwap.d.ts +0 -5
- package/dist/components/ProfileDetails/FunWalletProfileViews/FunArrowItem.d.ts +0 -4
- package/dist/components/ProfileDetails/FunWalletProfileViews/FunSelectionSection.d.ts +0 -11
- package/dist/components/ProfileDetails/ProfileDetailsAction.d.ts +0 -10
- package/dist/components/QRCode/QRCode.d.ts +0 -13
- package/dist/components/SignIn/SignIn.d.ts +0 -5
- package/dist/components/SkeletalLoader/SkeletalLoader.css.d.ts +0 -1
- package/dist/components/SkeletalLoader/SkeletalLoader.d.ts +0 -2
- package/dist/components/Text/Text.d.ts +0 -18
- package/dist/components/TwoFaInputField/FunTwoFaInput.d.ts +0 -10
- package/dist/components/Txs/TxItem.d.ts +0 -7
- package/dist/components/Txs/TxList.d.ts +0 -7
- package/dist/components/Txs/Txs.css.d.ts +0 -2
- package/dist/components/index.d.ts +0 -4
- package/dist/consts/funkit.d.ts +0 -7
- package/dist/css/animations.css.d.ts +0 -9
- package/dist/css/atoms.d.ts +0 -6
- package/dist/css/cssObjectFromTheme.d.ts +0 -6
- package/dist/css/cssStringFromTheme.d.ts +0 -4
- package/dist/css/reset.css.d.ts +0 -14
- package/dist/css/sprinkles.css.d.ts +0 -2798
- package/dist/css/touchableStyles.css.d.ts +0 -4
- package/dist/css/touchableStyles.d.ts +0 -8
- package/dist/hooks/useChainId.d.ts +0 -1
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +0 -31
- package/dist/hooks/useCheckoutStateBooleans.d.ts +0 -9
- package/dist/hooks/useConnectionStatus.d.ts +0 -7
- package/dist/hooks/useDebouncedCallback.d.ts +0 -1
- package/dist/hooks/useFunListeners.d.ts +0 -8
- package/dist/hooks/useIsMounted.d.ts +0 -1
- package/dist/hooks/useMainnet.d.ts +0 -4
- package/dist/hooks/useMainnetEnsAvatar.d.ts +0 -1
- package/dist/hooks/useMainnetEnsName.d.ts +0 -1
- package/dist/hooks/useMesh.d.ts +0 -25
- package/dist/hooks/useSymbolRefresh.d.ts +0 -7
- package/dist/hooks/useWindowSize.d.ts +0 -4
- package/dist/index.d.ts +0 -19
- package/dist/locales/index.d.ts +0 -3
- package/dist/themes/baseTheme.d.ts +0 -25
- package/dist/themes/darkTheme.d.ts +0 -65
- package/dist/themes/lightTheme.d.ts +0 -65
- package/dist/transactions/TransactionStoreContext.d.ts +0 -151
- package/dist/transactions/transactionStore.d.ts +0 -21
- package/dist/transactions/useAddRecentTransaction.d.ts +0 -2
- package/dist/transactions/useClearRecentTransactions.d.ts +0 -1
- package/dist/transactions/useRecentTransactions.d.ts +0 -2
- package/dist/types.d.ts +0 -4
- package/dist/utils/browsers.d.ts +0 -13
- package/dist/utils/chainToExplorerUrl.d.ts +0 -2
- package/dist/utils/checkout.d.ts +0 -94
- package/dist/utils/colors.d.ts +0 -3
- package/dist/utils/emailandPhoneValidator.d.ts +0 -5
- package/dist/utils/flatten.d.ts +0 -1
- package/dist/utils/formatNumber.d.ts +0 -53
- package/dist/utils/formatTimestamp.d.ts +0 -1
- package/dist/utils/funwallet.d.ts +0 -1
- package/dist/utils/getWalletConnectUri.d.ts +0 -2
- package/dist/utils/groupBy.d.ts +0 -1
- package/dist/utils/indexBy.d.ts +0 -1
- package/dist/utils/isMobile.d.ts +0 -5
- package/dist/utils/isNotNullish.d.ts +0 -1
- package/dist/utils/locale.d.ts +0 -1
- package/dist/utils/mesh.d.ts +0 -53
- package/dist/utils/miniAbi/balanceOf.d.ts +0 -16
- package/dist/utils/moonpay.d.ts +0 -1
- package/dist/utils/omitUndefinedValues.d.ts +0 -1
- package/dist/utils/platforms.d.ts +0 -10
- package/dist/wallets/Wallet.d.ts +0 -86
- package/dist/wallets/connectorsForWallets.d.ts +0 -2
- package/dist/wallets/downloadUrls.d.ts +0 -4
- package/dist/wallets/getDefaultWallets.d.ts +0 -11
- package/dist/wallets/getInjectedConnector.d.ts +0 -10
- package/dist/wallets/getWalletConnectConnector.d.ts +0 -26
- package/dist/wallets/recentWalletIds.d.ts +0 -2
- package/dist/wallets/useWalletConnectors.d.ts +0 -13
- package/dist/wallets/walletConnectors/@funkitConnectWallet/funkitConnectWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.d.ts +0 -18
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +0 -39
- package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/braveWallet/braveWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/chunk-2T3BP5YM.js +0 -71
- package/dist/wallets/walletConnectors/chunk-3JTRMKJN.js +0 -71
- package/dist/wallets/walletConnectors/chunk-4ACOCJJZ.js +0 -54
- package/dist/wallets/walletConnectors/chunk-4AGSKVK4.js +0 -105
- package/dist/wallets/walletConnectors/chunk-4VG2VEG2.js +0 -114
- package/dist/wallets/walletConnectors/chunk-6GAD4OSN.js +0 -102
- package/dist/wallets/walletConnectors/chunk-BZWTTESU.js +0 -110
- package/dist/wallets/walletConnectors/chunk-DINSZSEC.js +0 -71
- package/dist/wallets/walletConnectors/chunk-DTCZLIMY.js +0 -112
- package/dist/wallets/walletConnectors/chunk-LU3HYLHT.js +0 -117
- package/dist/wallets/walletConnectors/chunk-MPVMJW2X.js +0 -113
- package/dist/wallets/walletConnectors/chunk-RAKDFYVF.js +0 -81
- package/dist/wallets/walletConnectors/chunk-TTTMI2Z2.js +0 -84
- package/dist/wallets/walletConnectors/chunk-UM7QXLQE.js +0 -226
- package/dist/wallets/walletConnectors/chunk-Z47L7SO3.js +0 -52
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.d.ts +0 -15
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.d.ts +0 -22
- package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.d.ts +0 -24
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/desigWallet/desigWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.d.ts +0 -11
- package/dist/wallets/walletConnectors/frameWallet/frameWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.d.ts +0 -22
- package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/index.d.ts +0 -41
- package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.d.ts +0 -17
- package/dist/wallets/walletConnectors/mewWallet/mewWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.d.ts +0 -17
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.d.ts +0 -11
- package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.d.ts +0 -17
- package/dist/wallets/walletConnectors/safeWallet/safeWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.d.ts +0 -12
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.d.ts +0 -22
- package/dist/wallets/walletConnectors/subWallet/subWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.d.ts +0 -12
- package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.d.ts +0 -12
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.d.ts +0 -17
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.d.ts +0 -22
- package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.d.ts +0 -12
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.d.ts +0 -17
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-UZ5XLPAW.js";
|
|
6
|
-
import {
|
|
7
|
-
isMobile
|
|
8
|
-
} from "./chunk-ZOLACFTK.js";
|
|
9
|
-
import {
|
|
10
|
-
getWalletConnectConnector,
|
|
11
|
-
getWalletConnectUri
|
|
12
|
-
} from "./chunk-4ACOCJJZ.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
|
-
};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-4ACOCJJZ.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid
|
|
8
|
-
} from "./chunk-ZOLACFTK.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/okxWallet/okxWallet.ts
|
|
11
|
-
import { InjectedConnector } from "wagmi/connectors/injected";
|
|
12
|
-
var okxWallet = ({
|
|
13
|
-
chains,
|
|
14
|
-
projectId,
|
|
15
|
-
walletConnectOptions,
|
|
16
|
-
walletConnectVersion = "2",
|
|
17
|
-
...options
|
|
18
|
-
}) => {
|
|
19
|
-
const isOKXInjected = typeof window !== "undefined" && typeof window.okxwallet !== "undefined";
|
|
20
|
-
const shouldUseWalletConnect = !isOKXInjected;
|
|
21
|
-
return {
|
|
22
|
-
id: "okx",
|
|
23
|
-
name: "OKX Wallet",
|
|
24
|
-
iconUrl: async () => (await import("./okxWallet-GKYMI2XW.js")).default,
|
|
25
|
-
iconAccent: "#000",
|
|
26
|
-
iconBackground: "#000",
|
|
27
|
-
downloadUrls: {
|
|
28
|
-
android: "https://play.google.com/store/apps/details?id=com.okinc.okex.gp",
|
|
29
|
-
ios: "https://itunes.apple.com/app/id1327268470?mt=8",
|
|
30
|
-
mobile: "https://okx.com/download",
|
|
31
|
-
qrCode: "https://okx.com/download",
|
|
32
|
-
chrome: "https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",
|
|
33
|
-
edge: "https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",
|
|
34
|
-
firefox: "https://addons.mozilla.org/firefox/addon/okexwallet/",
|
|
35
|
-
browserExtension: "https://okx.com/download"
|
|
36
|
-
},
|
|
37
|
-
createConnector: () => {
|
|
38
|
-
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
39
|
-
projectId,
|
|
40
|
-
chains,
|
|
41
|
-
version: walletConnectVersion,
|
|
42
|
-
options: walletConnectOptions
|
|
43
|
-
}) : new InjectedConnector({
|
|
44
|
-
chains,
|
|
45
|
-
options: {
|
|
46
|
-
getProvider: () => window.okxwallet,
|
|
47
|
-
...options
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
return {
|
|
51
|
-
connector,
|
|
52
|
-
mobile: {
|
|
53
|
-
getUri: shouldUseWalletConnect ? async () => {
|
|
54
|
-
const uri = await getWalletConnectUri(
|
|
55
|
-
connector,
|
|
56
|
-
walletConnectVersion
|
|
57
|
-
);
|
|
58
|
-
return isAndroid() ? uri : `okex://main/wc?uri=${encodeURIComponent(uri)}`;
|
|
59
|
-
} : void 0
|
|
60
|
-
},
|
|
61
|
-
qrCode: shouldUseWalletConnect ? {
|
|
62
|
-
getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
|
|
63
|
-
instructions: {
|
|
64
|
-
learnMoreUrl: "https://okx.com/web3/",
|
|
65
|
-
steps: [
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.okx.qr_code.step1.description",
|
|
68
|
-
step: "install",
|
|
69
|
-
title: "wallet_connectors.okx.qr_code.step1.title"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
description: "wallet_connectors.okx.qr_code.step2.description",
|
|
73
|
-
step: "create",
|
|
74
|
-
title: "wallet_connectors.okx.qr_code.step2.title"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
description: "wallet_connectors.okx.qr_code.step3.description",
|
|
78
|
-
step: "scan",
|
|
79
|
-
title: "wallet_connectors.okx.qr_code.step3.title"
|
|
80
|
-
}
|
|
81
|
-
]
|
|
82
|
-
}
|
|
83
|
-
} : void 0,
|
|
84
|
-
extension: {
|
|
85
|
-
instructions: {
|
|
86
|
-
learnMoreUrl: "https://okx.com/web3/",
|
|
87
|
-
steps: [
|
|
88
|
-
{
|
|
89
|
-
description: "wallet_connectors.okx.extension.step1.description",
|
|
90
|
-
step: "install",
|
|
91
|
-
title: "wallet_connectors.okx.extension.step1.title"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
description: "wallet_connectors.okx.extension.step2.description",
|
|
95
|
-
step: "create",
|
|
96
|
-
title: "wallet_connectors.okx.extension.step2.title"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
description: "wallet_connectors.okx.extension.step3.description",
|
|
100
|
-
step: "refresh",
|
|
101
|
-
title: "wallet_connectors.okx.extension.step3.title"
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
export {
|
|
112
|
-
okxWallet
|
|
113
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-4ACOCJJZ.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid
|
|
8
|
-
} from "./chunk-ZOLACFTK.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
|
|
11
|
-
import { InjectedConnector } from "wagmi/connectors/injected";
|
|
12
|
-
var bifrostWallet = ({
|
|
13
|
-
chains,
|
|
14
|
-
projectId,
|
|
15
|
-
walletConnectOptions,
|
|
16
|
-
walletConnectVersion = "2",
|
|
17
|
-
...options
|
|
18
|
-
}) => {
|
|
19
|
-
const isBifrostInjected = typeof window !== "undefined" && typeof window.ethereum !== "undefined" && window.ethereum.isBifrost;
|
|
20
|
-
const shouldUseWalletConnect = !isBifrostInjected;
|
|
21
|
-
return {
|
|
22
|
-
id: "bifrostWallet",
|
|
23
|
-
name: "Bifrost Wallet",
|
|
24
|
-
iconUrl: async () => (await import("./bifrostWallet-5VPKXMCJ.js")).default,
|
|
25
|
-
iconBackground: "#fff",
|
|
26
|
-
installed: !shouldUseWalletConnect ? isBifrostInjected : void 0,
|
|
27
|
-
downloadUrls: {
|
|
28
|
-
android: "https://play.google.com/store/apps/details?id=com.bifrostwallet.app",
|
|
29
|
-
ios: "https://apps.apple.com/us/app/bifrost-wallet/id1577198351",
|
|
30
|
-
qrCode: "https://bifrostwallet.com/#download-app"
|
|
31
|
-
},
|
|
32
|
-
createConnector: () => {
|
|
33
|
-
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
34
|
-
chains,
|
|
35
|
-
projectId,
|
|
36
|
-
options: walletConnectOptions,
|
|
37
|
-
version: walletConnectVersion
|
|
38
|
-
}) : new InjectedConnector({
|
|
39
|
-
chains,
|
|
40
|
-
options
|
|
41
|
-
});
|
|
42
|
-
const getUri = async () => {
|
|
43
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
44
|
-
return isAndroid() ? uri : `https://app.bifrostwallet.com/wc?uri=${encodeURIComponent(uri)}`;
|
|
45
|
-
};
|
|
46
|
-
return {
|
|
47
|
-
connector,
|
|
48
|
-
mobile: {
|
|
49
|
-
getUri: shouldUseWalletConnect ? getUri : void 0
|
|
50
|
-
},
|
|
51
|
-
qrCode: shouldUseWalletConnect ? {
|
|
52
|
-
getUri: async () => getWalletConnectUri(connector, walletConnectVersion),
|
|
53
|
-
instructions: {
|
|
54
|
-
learnMoreUrl: "https://support.bifrostwallet.com/en/articles/6886814-how-to-use-walletconnect",
|
|
55
|
-
steps: [
|
|
56
|
-
{
|
|
57
|
-
description: "wallet_connectors.bifrost.qr_code.step1.description",
|
|
58
|
-
step: "install",
|
|
59
|
-
title: "wallet_connectors.bifrost.qr_code.step1.title"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
description: "wallet_connectors.bifrost.qr_code.step2.description",
|
|
63
|
-
step: "create",
|
|
64
|
-
title: "wallet_connectors.bifrost.qr_code.step2.title"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
description: "wallet_connectors.bifrost.qr_code.step3.description",
|
|
68
|
-
step: "scan",
|
|
69
|
-
title: "wallet_connectors.bifrost.qr_code.step3.title"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
} : void 0
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export {
|
|
80
|
-
bifrostWallet
|
|
81
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getInjectedConnector,
|
|
4
|
-
hasInjectedProvider
|
|
5
|
-
} from "./chunk-UZ5XLPAW.js";
|
|
6
|
-
import {
|
|
7
|
-
isAndroid,
|
|
8
|
-
isIOS
|
|
9
|
-
} from "./chunk-ZOLACFTK.js";
|
|
10
|
-
import {
|
|
11
|
-
getWalletConnectConnector,
|
|
12
|
-
getWalletConnectUri
|
|
13
|
-
} from "./chunk-4ACOCJJZ.js";
|
|
14
|
-
|
|
15
|
-
// src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
|
|
16
|
-
var rainbowWallet = ({
|
|
17
|
-
chains,
|
|
18
|
-
projectId,
|
|
19
|
-
walletConnectOptions,
|
|
20
|
-
walletConnectVersion = "2",
|
|
21
|
-
...options
|
|
22
|
-
}) => {
|
|
23
|
-
const isRainbowInjected = hasInjectedProvider("isRainbow");
|
|
24
|
-
const shouldUseWalletConnect = !isRainbowInjected;
|
|
25
|
-
return {
|
|
26
|
-
id: "rainbow",
|
|
27
|
-
name: "Rainbow",
|
|
28
|
-
iconUrl: async () => (await import("./rainbowWallet-GGU64QEI.js")).default,
|
|
29
|
-
iconBackground: "#0c2f78",
|
|
30
|
-
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
31
|
-
downloadUrls: {
|
|
32
|
-
android: "https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",
|
|
33
|
-
ios: "https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",
|
|
34
|
-
mobile: "https://rainbow.download?utm_source=rainbowkit",
|
|
35
|
-
qrCode: "https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",
|
|
36
|
-
browserExtension: "https://rainbow.me/extension?utm_source=rainbowkit"
|
|
37
|
-
},
|
|
38
|
-
createConnector: () => {
|
|
39
|
-
const connector = shouldUseWalletConnect ? getWalletConnectConnector({
|
|
40
|
-
projectId,
|
|
41
|
-
chains,
|
|
42
|
-
version: walletConnectVersion,
|
|
43
|
-
options: walletConnectOptions
|
|
44
|
-
}) : getInjectedConnector({ flag: "isRainbow", chains, options });
|
|
45
|
-
const getUri = async () => {
|
|
46
|
-
const uri = await getWalletConnectUri(connector, walletConnectVersion);
|
|
47
|
-
return isAndroid() ? uri : isIOS() ? `rainbow://wc?uri=${encodeURIComponent(uri)}&connector=rainbowkit` : `https://rnbwapp.com/wc?uri=${encodeURIComponent(
|
|
48
|
-
uri
|
|
49
|
-
)}&connector=rainbowkit`;
|
|
50
|
-
};
|
|
51
|
-
return {
|
|
52
|
-
connector,
|
|
53
|
-
mobile: { getUri: shouldUseWalletConnect ? getUri : void 0 },
|
|
54
|
-
qrCode: shouldUseWalletConnect ? {
|
|
55
|
-
getUri,
|
|
56
|
-
instructions: {
|
|
57
|
-
learnMoreUrl: "https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",
|
|
58
|
-
steps: [
|
|
59
|
-
{
|
|
60
|
-
description: "wallet_connectors.rainbow.qr_code.step1.description",
|
|
61
|
-
step: "install",
|
|
62
|
-
title: "wallet_connectors.rainbow.qr_code.step1.title"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
description: "wallet_connectors.rainbow.qr_code.step2.description",
|
|
66
|
-
step: "create",
|
|
67
|
-
title: "wallet_connectors.rainbow.qr_code.step2.title"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
description: "wallet_connectors.rainbow.qr_code.step3.description",
|
|
71
|
-
step: "scan",
|
|
72
|
-
title: "wallet_connectors.rainbow.qr_code.step3.title"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
} : void 0
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export {
|
|
83
|
-
rainbowWallet
|
|
84
|
-
};
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isAndroid,
|
|
4
|
-
isIOS
|
|
5
|
-
} from "./chunk-ZOLACFTK.js";
|
|
6
|
-
import {
|
|
7
|
-
getWalletConnectConnector,
|
|
8
|
-
getWalletConnectUri
|
|
9
|
-
} from "./chunk-4ACOCJJZ.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
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
isIOS
|
|
4
|
-
} from "./chunk-ZOLACFTK.js";
|
|
5
|
-
import {
|
|
6
|
-
getWalletConnectConnector,
|
|
7
|
-
getWalletConnectUri
|
|
8
|
-
} from "./chunk-4ACOCJJZ.js";
|
|
9
|
-
|
|
10
|
-
// src/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.ts
|
|
11
|
-
var walletConnectWallet = ({
|
|
12
|
-
chains,
|
|
13
|
-
options,
|
|
14
|
-
projectId,
|
|
15
|
-
version = "2"
|
|
16
|
-
}) => ({
|
|
17
|
-
id: "walletConnect",
|
|
18
|
-
name: "WalletConnect",
|
|
19
|
-
iconUrl: async () => (await import("./walletConnectWallet-D6ZADJM7.js")).default,
|
|
20
|
-
iconBackground: "#3b99fc",
|
|
21
|
-
createConnector: () => {
|
|
22
|
-
const ios = isIOS();
|
|
23
|
-
const connector = version === "1" ? getWalletConnectConnector({
|
|
24
|
-
version: "1",
|
|
25
|
-
chains,
|
|
26
|
-
options: {
|
|
27
|
-
qrcode: ios,
|
|
28
|
-
...options
|
|
29
|
-
}
|
|
30
|
-
}) : getWalletConnectConnector({
|
|
31
|
-
version: "2",
|
|
32
|
-
chains,
|
|
33
|
-
projectId,
|
|
34
|
-
options: {
|
|
35
|
-
showQrModal: ios,
|
|
36
|
-
...options
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
const getUri = async () => getWalletConnectUri(connector, version);
|
|
40
|
-
return {
|
|
41
|
-
connector,
|
|
42
|
-
...ios ? {} : {
|
|
43
|
-
mobile: { getUri },
|
|
44
|
-
qrCode: { getUri }
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
export {
|
|
51
|
-
walletConnectWallet
|
|
52
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Chain } from '../../../components/FunkitProvider/RainbowKitChainContext';
|
|
2
|
-
import { WalletConnectConnectorOptions } from '../../getWalletConnectConnector';
|
|
3
|
-
import { Wallet } from '../../Wallet';
|
|
4
|
-
export interface CLVWalletOptions {
|
|
5
|
-
projectId: string;
|
|
6
|
-
chains: Chain[];
|
|
7
|
-
walletConnectVersion?: '2';
|
|
8
|
-
walletConnectOptions?: WalletConnectConnectorOptions;
|
|
9
|
-
}
|
|
10
|
-
declare global {
|
|
11
|
-
interface Window {
|
|
12
|
-
clover: any;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export declare const clvWallet: ({ chains, projectId, walletConnectOptions, walletConnectVersion, }: CLVWalletOptions) => Wallet;
|