@funkit/connect 0.1.10 → 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/dist/__private__/index.d.ts +8 -0
- package/dist/chunk-7BFJCGW2.js +24994 -0
- package/dist/{chunk-X25RSAGB.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-AFMQLXY2.js → chunk-363R4ANA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-4FQ2OCM4.js → chunk-3AGSQ2RN.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-PATI3A3F.js → chunk-3DY3HAMM.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-DS2NHYCT.js → chunk-3EHPYNDW.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-Y4EWYKDM.js → chunk-5FDGJMHJ.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-TBZII4VB.js → chunk-AM2WFIQL.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-G2HR4ZFS.js → chunk-API5X5WH.js} +4 -4
- package/dist/wallets/walletConnectors/chunk-BBUYSZBE.js +52 -0
- package/dist/wallets/walletConnectors/{chunk-OV2JRO7A.js → chunk-BBVH7CPS.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-EXTKISYU.js → chunk-BG2VHSGN.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2T67SC63.js → chunk-BUX4O2MX.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-4LHUAGGQ.js → chunk-CJA6ERXY.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-BYGJDC6Y.js → chunk-EHO5SY4G.js} +1 -1
- 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-4CGDJKUJ.js → chunk-J3HOIBZW.js} +4 -4
- 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-TT2SHVBF.js → chunk-QOK4O2YL.js} +4 -4
- package/dist/wallets/walletConnectors/chunk-RZE4WHVP.js +112 -0
- package/dist/wallets/walletConnectors/{chunk-THH76QKN.js → chunk-SMDKR4XA.js} +4 -4
- 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 +59 -59
- 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 +4 -5
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
interface FormatNumberOptions {
|
|
2
|
+
/** Numbers smaller than this will be converted to scientific notation */
|
|
3
|
+
minBeforeUseScientific?: number;
|
|
4
|
+
/** If the number part for suffixed # is >= this, will use sci notation (e.g. 1,000M -> 1E3M) */
|
|
5
|
+
maxNumberPartSizeForSuffix?: number;
|
|
6
|
+
/** The amount of decimal places to truncate to when softly truncating (to specify decimal places for suffix-truncation, e.g. 1.23M, use decimalPrecisionForSuffix) */
|
|
7
|
+
softDecimalPrecision?: number;
|
|
8
|
+
/** Numbers >= this will have their decimals truncated aggressively */
|
|
9
|
+
maxBeforeAggresiveDecimalTruncation?: number;
|
|
10
|
+
/** The amount of decimal places to truncate to when aggressively truncating (to specify decimal places for suffix-truncation, e.g. 1.23M, use decimalPrecisionForSuffix) */
|
|
11
|
+
aggresiveDecimalPrecision?: number;
|
|
12
|
+
/** Numbers >= this will have a suffix added during truncation (e.g. 1.23M) */
|
|
13
|
+
maxBeforeUseSuffix?: number;
|
|
14
|
+
/** The amount of decimal places to truncate suffix-truncated numbers to (e.g. 1.23M vs 1.2312M)*/
|
|
15
|
+
decimalPrecisionForSuffix?: number;
|
|
16
|
+
/** The largest suffix to use (e.g. if 1000000, we will stop at M and not use the B suffix) */
|
|
17
|
+
maxSuffixSize?: 1e3 | 1e6 | 1e9 | 1e12;
|
|
18
|
+
numberFormatOptions?: Intl.NumberFormatOptions;
|
|
19
|
+
/** Adds minimum significant digits value to force numbers to show decimal precision even when there are none 5 -> 5.00 */
|
|
20
|
+
minimumSignificantDigits?: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Formats a number with conditional truncation, suffixation, and scientific notation.
|
|
24
|
+
* @param number
|
|
25
|
+
* @param options Customize the formatting conditions/behavior
|
|
26
|
+
* @example Visualization, using default values:
|
|
27
|
+
* ```
|
|
28
|
+
* <--(1.23E-7)---0.00001------(0.12121)-------1-------(123,423.26)---1,000,000---(1.22M)--(100.23M)-->
|
|
29
|
+
* _______<-minBeforeScientific maxBeforeAggressive-> maxBeforeUseSuffix-> ^ w/ maxSuffixSize
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function formatNumberAndStringify(number: number, options?: FormatNumberOptions, numberFormatOptions?: {}): string;
|
|
33
|
+
/** Formats a number for currency (default $) display */
|
|
34
|
+
export declare function formatCurrencyAndStringify(amount: number,
|
|
35
|
+
/** Options to pass `formatNumberAndStringify */
|
|
36
|
+
options?: FormatNumberOptions,
|
|
37
|
+
/** Options to pass toLocaleString */
|
|
38
|
+
numberFormatOptions?: Intl.NumberFormatOptions): string;
|
|
39
|
+
/**
|
|
40
|
+
* Formats a cryptocurrency amount as a string for display.
|
|
41
|
+
*
|
|
42
|
+
* Can customize with options and whether to display currency abbreviation.
|
|
43
|
+
*/
|
|
44
|
+
export declare function formatCryptoAndStringify(
|
|
45
|
+
/** The currency amount **/
|
|
46
|
+
amount: number,
|
|
47
|
+
/** The currency abbreviation e.g. ETH, USDC, ... **/
|
|
48
|
+
platform?: string,
|
|
49
|
+
/** Displays abbreviation after amount, e.g. '1.25 ETH'; default true **/
|
|
50
|
+
useCurrencyAbbreviation?: boolean,
|
|
51
|
+
/** Used to format the number, can be used to customize decimal truncation etc. **/
|
|
52
|
+
options?: FormatNumberOptions): string;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatTimestamp(date: Date, shortened?: boolean): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FunkitProviderProps } from '../components/FunkitProvider/FunkitProvider';
|
|
2
|
+
export declare function getInitialChainIdFromFunkitProviderProps(props: FunkitProviderProps): number;
|
|
3
|
+
/**
|
|
4
|
+
* Validates the passed in props of FunkitProvider. If there are any misconfigurations, an error will be thrown.
|
|
5
|
+
*/
|
|
6
|
+
export declare function validateFunkitProviderProps(props: FunkitProviderProps): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getNormalizedTokenBalance: (tokenBalance: number, decimals: number) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function groupBy<Item>(items: Item[], getKey: (item: Item) => string): Record<string, Item[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function indexBy<Item>(items: Item[], getKey: (item: Item) => string): Record<string, Item>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isNotNullish<T>(value: T | null | undefined): value is T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const detectedBrowserLocale: () => string | undefined;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare enum MeshExchanges {
|
|
2
|
+
Robinhood = "Robinhood",
|
|
3
|
+
ETrade = "ETrade",
|
|
4
|
+
Alpaca = "Alpaca",
|
|
5
|
+
WeBull = "WeBull",
|
|
6
|
+
Stash = "Stash",
|
|
7
|
+
InteractiveBrokers = "InteractiveBrokers",
|
|
8
|
+
Public = "Public",
|
|
9
|
+
Coinbase = "Coinbase",
|
|
10
|
+
Kraken = "Kraken",
|
|
11
|
+
CoinbasePro = "CoinbasePro",
|
|
12
|
+
CryptoCom = "CryptoCom",
|
|
13
|
+
Binance = "Binance",
|
|
14
|
+
Gemini = "Gemini",
|
|
15
|
+
OkCoin = "OkCoin",
|
|
16
|
+
Bittrex = "Bittrex",
|
|
17
|
+
KuCoin = "KuCoin",
|
|
18
|
+
Etoro = "Etoro",
|
|
19
|
+
CexIo = "CexIo",
|
|
20
|
+
BinanceInternational = "BinanceInternational",
|
|
21
|
+
Bitstamp = "Bitstamp",
|
|
22
|
+
GateIo = "GateIo",
|
|
23
|
+
Acorns = "Acorns",
|
|
24
|
+
Okx = "Okx",
|
|
25
|
+
BitFlyer = "BitFlyer",
|
|
26
|
+
Coinlist = "Coinlist",
|
|
27
|
+
Huobi = "Huobi",
|
|
28
|
+
Bitfinex = "Bitfinex",
|
|
29
|
+
KrakenDirect = "KrakenDirect",
|
|
30
|
+
Vanguard = "Vanguard",
|
|
31
|
+
BinanceInternationalDirect = "BinanceInternationalDirect",
|
|
32
|
+
BitfinexDirect = "BitfinexDirect",
|
|
33
|
+
Bybit = "Bybit"
|
|
34
|
+
}
|
|
35
|
+
export declare function fetchMeshLinkToken(selectedExchange: MeshExchanges, funApiKey: string): Promise<any>;
|
|
36
|
+
export declare function executeBrokerageDeposit(fromAuthToken: string, brokerage: string, previewId: string, apiKey: string, mfaCode?: string): Promise<any>;
|
|
37
|
+
export declare function previewBrokerageDeposit(fromAuthToken: string, brokerage: string, token: string, amount: string, toAddress: string, apiKey: string, networkId: string): Promise<{
|
|
38
|
+
previewId: string;
|
|
39
|
+
previewExpiresIn: string;
|
|
40
|
+
}>;
|
|
41
|
+
export declare function fetchMeshAccountCryptoHoldings({ authToken, apiKey, exchange, }: {
|
|
42
|
+
authToken: string;
|
|
43
|
+
apiKey: string;
|
|
44
|
+
exchange: MeshExchanges;
|
|
45
|
+
}): Promise<any>;
|
|
46
|
+
export declare function fetchMeshSupportedTokensByBrokerageAndSupportedFunkitChains({ exchange, apiKey, }: {
|
|
47
|
+
exchange: MeshExchanges;
|
|
48
|
+
apiKey: string;
|
|
49
|
+
}): Promise<any>;
|
|
50
|
+
export declare function fetchMeshSupportedTokensAndIdByChainIdAndBrokerage({ chainId, exchange, apiKey, }: {
|
|
51
|
+
chainId: string;
|
|
52
|
+
exchange: MeshExchanges;
|
|
53
|
+
apiKey: string;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
meshSupportedTokens: any;
|
|
56
|
+
meshNetworkId: any;
|
|
57
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handleGetMoonpayUrl: (tokenSymbol: string, chainId: number, walletAddress: string, amount: string) => Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function omitUndefinedValues<T>(obj: T): T;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum PlatformType {
|
|
2
|
+
Windows = "Windows",
|
|
3
|
+
MacOS = "macOS",
|
|
4
|
+
Linux = "Linux",
|
|
5
|
+
Desktop = "Desktop"
|
|
6
|
+
}
|
|
7
|
+
export declare function isWindows(): boolean;
|
|
8
|
+
export declare function isMacOS(): boolean;
|
|
9
|
+
export declare function isLinux(): boolean;
|
|
10
|
+
export declare function getPlatform(): PlatformType;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Connector } from 'wagmi';
|
|
2
|
+
export type InstructionStepName = 'install' | 'create' | 'scan' | 'connect' | 'refresh';
|
|
3
|
+
type RainbowKitConnector<C extends Connector = Connector> = {
|
|
4
|
+
connector: C;
|
|
5
|
+
mobile?: {
|
|
6
|
+
getUri?: () => Promise<string>;
|
|
7
|
+
};
|
|
8
|
+
desktop?: {
|
|
9
|
+
getUri?: () => Promise<string>;
|
|
10
|
+
instructions?: {
|
|
11
|
+
learnMoreUrl: string;
|
|
12
|
+
steps: {
|
|
13
|
+
step: InstructionStepName;
|
|
14
|
+
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
qrCode?: {
|
|
20
|
+
getUri: () => Promise<string>;
|
|
21
|
+
instructions?: {
|
|
22
|
+
learnMoreUrl: string;
|
|
23
|
+
steps: {
|
|
24
|
+
step: InstructionStepName;
|
|
25
|
+
title: string;
|
|
26
|
+
description: string;
|
|
27
|
+
}[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
extension?: {
|
|
31
|
+
instructions?: {
|
|
32
|
+
learnMoreUrl: string;
|
|
33
|
+
steps: {
|
|
34
|
+
step: InstructionStepName;
|
|
35
|
+
title: string;
|
|
36
|
+
description: string;
|
|
37
|
+
}[];
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export type Wallet<C extends Connector = Connector> = {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
shortName?: string;
|
|
45
|
+
iconUrl: string | (() => Promise<string>);
|
|
46
|
+
iconAccent?: string;
|
|
47
|
+
iconBackground: string;
|
|
48
|
+
installed?: boolean;
|
|
49
|
+
downloadUrls?: {
|
|
50
|
+
android?: string;
|
|
51
|
+
ios?: string;
|
|
52
|
+
mobile?: string;
|
|
53
|
+
qrCode?: string;
|
|
54
|
+
chrome?: string;
|
|
55
|
+
edge?: string;
|
|
56
|
+
firefox?: string;
|
|
57
|
+
opera?: string;
|
|
58
|
+
safari?: string;
|
|
59
|
+
browserExtension?: string;
|
|
60
|
+
macos?: string;
|
|
61
|
+
windows?: string;
|
|
62
|
+
linux?: string;
|
|
63
|
+
desktop?: string;
|
|
64
|
+
};
|
|
65
|
+
hidden?: (args: {
|
|
66
|
+
wallets: {
|
|
67
|
+
id: string;
|
|
68
|
+
connector: Connector;
|
|
69
|
+
installed?: boolean;
|
|
70
|
+
name: string;
|
|
71
|
+
}[];
|
|
72
|
+
}) => boolean;
|
|
73
|
+
createConnector: () => RainbowKitConnector<C>;
|
|
74
|
+
};
|
|
75
|
+
export type WalletListItem = {
|
|
76
|
+
groupName: string;
|
|
77
|
+
wallets: Wallet[];
|
|
78
|
+
};
|
|
79
|
+
export type WalletList = WalletListItem[];
|
|
80
|
+
export type WalletInstance = Omit<Wallet, 'createConnector' | 'hidden'> & ReturnType<Wallet['createConnector']> & {
|
|
81
|
+
index: number;
|
|
82
|
+
groupIndex: number;
|
|
83
|
+
groupName: string;
|
|
84
|
+
walletConnectModalConnector?: Connector;
|
|
85
|
+
};
|
|
86
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { WalletInstance } from './Wallet';
|
|
2
|
+
export declare const getExtensionDownloadUrl: (wallet?: WalletInstance) => string | undefined;
|
|
3
|
+
export declare const getMobileDownloadUrl: (wallet?: WalletInstance) => string | undefined;
|
|
4
|
+
export declare const getDesktopDownloadUrl: (wallet?: WalletInstance) => string | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Chain } from '../components/FunkitProvider/FunkitConnectChainContext';
|
|
2
|
+
import { connectorsForWallets } from './connectorsForWallets';
|
|
3
|
+
import { WalletList } from './Wallet';
|
|
4
|
+
export declare const getDefaultWallets: ({ appName, chains, projectId, }: {
|
|
5
|
+
appName: string;
|
|
6
|
+
projectId: string;
|
|
7
|
+
chains: Chain[];
|
|
8
|
+
}) => {
|
|
9
|
+
connectors: ReturnType<typeof connectorsForWallets>;
|
|
10
|
+
wallets: WalletList;
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { InjectedConnectorOptions } from '@wagmi/core/connectors/injected';
|
|
2
|
+
import { InjectedConnector } from 'wagmi/connectors/injected';
|
|
3
|
+
import type { InjectedProviderFlags } from 'wagmi/window';
|
|
4
|
+
import type { Chain } from '../components/FunkitProvider/FunkitConnectChainContext';
|
|
5
|
+
export declare function hasInjectedProvider(flag: keyof InjectedProviderFlags): boolean;
|
|
6
|
+
export declare function getInjectedConnector({ chains, flag, options, }: {
|
|
7
|
+
flag: keyof InjectedProviderFlags;
|
|
8
|
+
chains: Chain[];
|
|
9
|
+
options?: InjectedConnectorOptions;
|
|
10
|
+
}): InjectedConnector;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { WalletConnectConnector } from 'wagmi/connectors/walletConnect';
|
|
2
|
+
import { WalletConnectLegacyConnector } from 'wagmi/connectors/walletConnectLegacy';
|
|
3
|
+
import { Chain } from '../components/FunkitProvider/FunkitConnectChainContext';
|
|
4
|
+
type WalletConnectVersion = '1' | '2';
|
|
5
|
+
type WalletConnectConnectorConfig = ConstructorParameters<typeof WalletConnectConnector>[0];
|
|
6
|
+
export type WalletConnectConnectorOptions = WalletConnectConnectorConfig['options'];
|
|
7
|
+
type WalletConnectLegacyConnectorConfig = ConstructorParameters<typeof WalletConnectLegacyConnector>[0];
|
|
8
|
+
export type WalletConnectLegacyConnectorOptions = WalletConnectLegacyConnectorConfig['options'];
|
|
9
|
+
export declare function getWalletConnectConnector(config: {
|
|
10
|
+
version?: WalletConnectVersion;
|
|
11
|
+
projectId?: string;
|
|
12
|
+
chains: Chain[];
|
|
13
|
+
options?: WalletConnectConnectorOptions;
|
|
14
|
+
}): WalletConnectConnector;
|
|
15
|
+
export declare function getWalletConnectConnector(config: {
|
|
16
|
+
version: '1';
|
|
17
|
+
chains: Chain[];
|
|
18
|
+
options?: WalletConnectLegacyConnectorOptions;
|
|
19
|
+
}): WalletConnectLegacyConnector;
|
|
20
|
+
export declare function getWalletConnectConnector(config: {
|
|
21
|
+
version: '2';
|
|
22
|
+
projectId: string;
|
|
23
|
+
chains: Chain[];
|
|
24
|
+
options?: WalletConnectConnectorOptions;
|
|
25
|
+
}): WalletConnectConnector;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useConnect } from 'wagmi';
|
|
2
|
+
import { WalletInstance } from './Wallet';
|
|
3
|
+
export interface WalletConnector extends WalletInstance {
|
|
4
|
+
ready?: boolean;
|
|
5
|
+
connect?: ReturnType<typeof useConnect>['connectAsync'];
|
|
6
|
+
onConnecting?: (fn: () => void) => void;
|
|
7
|
+
showWalletConnectModal?: () => void;
|
|
8
|
+
recent: boolean;
|
|
9
|
+
mobileDownloadUrl?: string;
|
|
10
|
+
extensionDownloadUrl?: string;
|
|
11
|
+
desktopDownloadUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function useWalletConnectors(): WalletConnector[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GlobalEnvOption } from '@funkit/core';
|
|
2
|
+
import { Wallet } from '../../Wallet';
|
|
3
|
+
interface funkitConnectWalletOptions {
|
|
4
|
+
funkitOptions: GlobalEnvOption;
|
|
5
|
+
}
|
|
6
|
+
export declare const funkitConnectWallet: ({ funkitOptions, }: funkitConnectWalletOptions) => Wallet;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Chain } from '../../../components/FunkitProvider/FunkitConnectChainContext';
|
|
2
|
+
import type { WalletConnectConnectorOptions, WalletConnectLegacyConnectorOptions } from '../../getWalletConnectConnector';
|
|
3
|
+
import { Wallet } from '../../Wallet';
|
|
4
|
+
export interface ArgentWalletLegacyOptions {
|
|
5
|
+
projectId?: string;
|
|
6
|
+
chains: Chain[];
|
|
7
|
+
walletConnectVersion: '1';
|
|
8
|
+
walletConnectOptions?: WalletConnectLegacyConnectorOptions;
|
|
9
|
+
}
|
|
10
|
+
export interface ArgentWalletOptions {
|
|
11
|
+
projectId: string;
|
|
12
|
+
chains: Chain[];
|
|
13
|
+
walletConnectVersion?: '2';
|
|
14
|
+
walletConnectOptions?: WalletConnectConnectorOptions;
|
|
15
|
+
}
|
|
16
|
+
export declare const argentWallet: ({ chains, projectId, walletConnectOptions, walletConnectVersion, }: ArgentWalletLegacyOptions | ArgentWalletOptions) => Wallet;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { InjectedConnectorOptions } from '@wagmi/core';
|
|
2
|
+
import { Chain } from '../../../components/FunkitProvider/FunkitConnectChainContext';
|
|
3
|
+
import { WalletConnectConnectorOptions, WalletConnectLegacyConnectorOptions } from '../../getWalletConnectConnector';
|
|
4
|
+
import { Wallet } from '../../Wallet';
|
|
5
|
+
import { InjectedWalletOptions } from '../injectedWallet/injectedWallet';
|
|
6
|
+
export interface BifrostWalletLegacyOptions {
|
|
7
|
+
projectId?: string;
|
|
8
|
+
chains: Chain[];
|
|
9
|
+
walletConnectVersion: '1';
|
|
10
|
+
walletConnectOptions?: WalletConnectLegacyConnectorOptions;
|
|
11
|
+
}
|
|
12
|
+
export interface BifrostWalletOptions {
|
|
13
|
+
projectId: string;
|
|
14
|
+
chains: Chain[];
|
|
15
|
+
walletConnectVersion?: '2';
|
|
16
|
+
walletConnectOptions?: WalletConnectConnectorOptions;
|
|
17
|
+
}
|
|
18
|
+
export declare const bifrostWallet: ({ chains, projectId, walletConnectOptions, walletConnectVersion, ...options }: (BifrostWalletOptions | BifrostWalletLegacyOptions) & InjectedWalletOptions & InjectedConnectorOptions) => Wallet;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { InjectedConnectorOptions } from '@wagmi/core/connectors/injected';
|
|
2
|
+
import { Chain } from '../../../components/FunkitProvider/FunkitConnectChainContext';
|
|
3
|
+
import type { WalletConnectConnectorOptions, WalletConnectLegacyConnectorOptions } from '../../getWalletConnectConnector';
|
|
4
|
+
import { Wallet } from '../../Wallet';
|
|
5
|
+
export interface BitgetWalletLegacyOptions {
|
|
6
|
+
projectId?: string;
|
|
7
|
+
chains: Chain[];
|
|
8
|
+
walletConnectVersion: '1';
|
|
9
|
+
walletConnectOptions?: WalletConnectLegacyConnectorOptions;
|
|
10
|
+
}
|
|
11
|
+
export interface BitgetWalletOptions {
|
|
12
|
+
projectId: string;
|
|
13
|
+
chains: Chain[];
|
|
14
|
+
walletConnectVersion?: '2';
|
|
15
|
+
walletConnectOptions?: WalletConnectConnectorOptions;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated `BitKeepWalletLegacyOptions` is now `BitgetWalletLegacyOptions`
|
|
19
|
+
*/
|
|
20
|
+
export interface BitKeepWalletLegacyOptions {
|
|
21
|
+
projectId?: string;
|
|
22
|
+
chains: Chain[];
|
|
23
|
+
walletConnectVersion: '1';
|
|
24
|
+
walletConnectOptions?: WalletConnectLegacyConnectorOptions;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated `BitKeepWalletOptions` is now `BitgetWalletOptions`
|
|
28
|
+
*/
|
|
29
|
+
export interface BitKeepWalletOptions {
|
|
30
|
+
projectId: string;
|
|
31
|
+
chains: Chain[];
|
|
32
|
+
walletConnectVersion?: '2';
|
|
33
|
+
walletConnectOptions?: WalletConnectConnectorOptions;
|
|
34
|
+
}
|
|
35
|
+
export declare const bitgetWallet: ({ chains, projectId, walletConnectOptions, walletConnectVersion, ...options }: (BitgetWalletLegacyOptions | BitgetWalletOptions | BitKeepWalletLegacyOptions | BitKeepWalletOptions) & InjectedConnectorOptions) => Wallet;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated `bitKeepWallet` is now `bitgetWallet`
|
|
38
|
+
*/
|
|
39
|
+
export declare const bitKeepWallet: ({ chains, projectId, walletConnectOptions, walletConnectVersion, ...options }: (BitgetWalletLegacyOptions | BitgetWalletOptions | BitKeepWalletLegacyOptions | BitKeepWalletOptions) & InjectedConnectorOptions) => Wallet;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InjectedConnectorOptions } from '@wagmi/core';
|
|
2
|
+
import { Chain } from '../../../components/FunkitProvider/FunkitConnectChainContext';
|
|
3
|
+
import { Wallet } from '../../Wallet';
|
|
4
|
+
export interface BitskiWalletOptions {
|
|
5
|
+
chains: Chain[];
|
|
6
|
+
}
|
|
7
|
+
export declare const bitskiWallet: ({ chains, ...options }: BitskiWalletOptions & InjectedConnectorOptions) => Wallet;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InjectedConnectorOptions } from '@wagmi/core';
|
|
2
|
+
import { Chain } from '../../../components/FunkitProvider/FunkitConnectChainContext';
|
|
3
|
+
import { Wallet } from '../../Wallet';
|
|
4
|
+
export interface BraveWalletOptions {
|
|
5
|
+
chains: Chain[];
|
|
6
|
+
}
|
|
7
|
+
export declare const braveWallet: ({ chains, ...options }: BraveWalletOptions & InjectedConnectorOptions) => Wallet;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-EUSM6MRB.js";
|
|
6
2
|
import {
|
|
7
3
|
isAndroid
|
|
8
4
|
} from "./chunk-ZOLACFTK.js";
|
|
5
|
+
import {
|
|
6
|
+
getWalletConnectConnector,
|
|
7
|
+
getWalletConnectUri
|
|
8
|
+
} from "./chunk-OJAMLRYU.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/omniWallet/omniWallet.ts
|
|
11
11
|
var omniWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-EUSM6MRB.js";
|
|
6
2
|
import {
|
|
7
3
|
isAndroid
|
|
8
4
|
} from "./chunk-ZOLACFTK.js";
|
|
5
|
+
import {
|
|
6
|
+
getWalletConnectConnector,
|
|
7
|
+
getWalletConnectUri
|
|
8
|
+
} from "./chunk-OJAMLRYU.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/oktoWallet/oktoWallet.ts
|
|
11
11
|
var oktoWallet = ({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-EUSM6MRB.js";
|
|
6
2
|
import {
|
|
7
3
|
isAndroid
|
|
8
4
|
} from "./chunk-ZOLACFTK.js";
|
|
5
|
+
import {
|
|
6
|
+
getWalletConnectConnector,
|
|
7
|
+
getWalletConnectUri
|
|
8
|
+
} from "./chunk-OJAMLRYU.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
|
|
11
11
|
import { InjectedConnector } from "wagmi/connectors/injected";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-EUSM6MRB.js";
|
|
6
2
|
import {
|
|
7
3
|
isIOS
|
|
8
4
|
} from "./chunk-ZOLACFTK.js";
|
|
5
|
+
import {
|
|
6
|
+
getWalletConnectConnector,
|
|
7
|
+
getWalletConnectUri
|
|
8
|
+
} from "./chunk-OJAMLRYU.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
|
|
11
11
|
import { InjectedConnector } from "wagmi/connectors/injected";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getWalletConnectConnector,
|
|
4
|
-
getWalletConnectUri
|
|
5
|
-
} from "./chunk-EUSM6MRB.js";
|
|
6
2
|
import {
|
|
7
3
|
isIOS
|
|
8
4
|
} from "./chunk-ZOLACFTK.js";
|
|
5
|
+
import {
|
|
6
|
+
getWalletConnectConnector,
|
|
7
|
+
getWalletConnectUri
|
|
8
|
+
} from "./chunk-OJAMLRYU.js";
|
|
9
9
|
|
|
10
10
|
// src/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.ts
|
|
11
11
|
var walletConnectWallet = ({
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getWalletConnectConnector,
|
|
4
|
+
getWalletConnectUri
|
|
5
|
+
} from "./chunk-OJAMLRYU.js";
|
|
6
|
+
import {
|
|
7
|
+
isIOS
|
|
8
|
+
} from "./chunk-ZOLACFTK.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
|
+
};
|