@funkit/connect 0.1.10 → 0.1.13
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-X25RSAGB.js → chunk-BQU2NRO5.js} +12577 -12351
- 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 +8 -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/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 +25 -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 +18 -0
- package/dist/components/FunOnramp/FunOnrampInputStep.d.ts +10 -0
- package/dist/components/FunOnramp/FunOnrampPrimaryItem.d.ts +5 -0
- package/dist/components/FunOnramp/FunOnrampProcessingStep.d.ts +6 -0
- package/dist/components/FunOnramp/FunOnrampTokenPill.d.ts +7 -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 +55 -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 +26 -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 +22 -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 +142 -0
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +20 -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 +24 -0
- package/dist/components/FunkitProvider/I18nContext.d.ts +9 -0
- package/dist/components/FunkitProvider/ModalContext.d.ts +37 -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 +68 -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/RedirectIcon.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/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 +14 -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/ProfileDetails/WalletProfileDetails.d.ts +19 -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 +1816 -707
- 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 +1800 -691
- 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 +104 -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 +58 -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-BYGJDC6Y.js → chunk-2XHTO74O.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OV2JRO7A.js → chunk-3XLDPS4Y.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-4CGDJKUJ.js → chunk-4EKX7Z25.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-EXTKISYU.js → chunk-4WS4ZSRN.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-Y4EWYKDM.js → chunk-6FQF7H7H.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-EUSM6MRB.js → chunk-6T5K52ZY.js} +5 -5
- package/dist/wallets/walletConnectors/{chunk-TBZII4VB.js → chunk-77KYAV4P.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-237HEA4B.js → chunk-7EOFWORX.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-IVIQBLOK.js → chunk-APZ6YBCA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-DS2NHYCT.js → chunk-BDKAIAQA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-G2HR4ZFS.js → chunk-DBMFZSXN.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-OH3HGTQV.js → chunk-EHO4MJZJ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-2T67SC63.js → chunk-FTTYELWN.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-THH76QKN.js → chunk-GHYJ56FA.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-TT2SHVBF.js → chunk-GLB4HFDR.js} +4 -4
- package/dist/wallets/walletConnectors/chunk-IEAKLGB6.js +84 -0
- package/dist/wallets/walletConnectors/chunk-JJICTRJY.js +114 -0
- package/dist/wallets/walletConnectors/chunk-KUXG7P5Q.js +102 -0
- package/dist/wallets/walletConnectors/{chunk-AFMQLXY2.js → chunk-LBSWP7R6.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-LEWQ7DQV.js +71 -0
- package/dist/wallets/walletConnectors/chunk-LL6T7V77.js +81 -0
- package/dist/wallets/walletConnectors/{chunk-JC5DQVHX.js → chunk-LVMQKSKW.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-MDDT3PSR.js +110 -0
- package/dist/wallets/walletConnectors/chunk-MOWIPEYK.js +226 -0
- package/dist/wallets/walletConnectors/{chunk-4FQ2OCM4.js → chunk-NEDPCNTA.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-M5VGZ2QW.js → chunk-PTF3JKWO.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-Q6N2YWW4.js +112 -0
- package/dist/wallets/walletConnectors/chunk-RL5OHS6R.js +113 -0
- package/dist/wallets/walletConnectors/{chunk-PATI3A3F.js → chunk-T3RIVRAX.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-7HTS7H5B.js → chunk-TG2HN6KW.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-4LHUAGGQ.js → chunk-TORM2ZGA.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-ZGVEVXA7.js → chunk-TZR3P22N.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-VAR774R5.js +105 -0
- package/dist/wallets/walletConnectors/chunk-VW5SMBMG.js +71 -0
- package/dist/wallets/walletConnectors/chunk-X6A7D2EA.js +71 -0
- package/dist/wallets/walletConnectors/chunk-XXTDCRCW.js +52 -0
- package/dist/wallets/walletConnectors/chunk-YWKKNHO3.js +117 -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 +68 -68
- 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
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { __private__ } from './__private__';
|
|
2
|
+
export * from './components';
|
|
3
|
+
export type { AuthenticationConfig, AuthenticationStatus, } from './components/FunkitProvider/AuthenticationContext';
|
|
4
|
+
export { createAuthenticationAdapter, RainbowKitAuthenticationProvider, } from './components/FunkitProvider/AuthenticationContext';
|
|
5
|
+
export type { AvatarComponent } from './components/FunkitProvider/AvatarContext';
|
|
6
|
+
export type { Chain } from './components/FunkitProvider/FunkitConnectChainContext';
|
|
7
|
+
export type { Theme } from './components/FunkitProvider/FunkitThemeProvider';
|
|
8
|
+
export { useActiveTheme } from './components/FunkitProvider/FunkitThemeProvider';
|
|
9
|
+
export { useAccountModal, useChainModal, useConnectModal, useFunCheckoutHistoryModal, useFunCheckoutModal, } from './components/FunkitProvider/ModalContext';
|
|
10
|
+
export { cssObjectFromTheme } from './css/cssObjectFromTheme';
|
|
11
|
+
export { cssStringFromTheme } from './css/cssStringFromTheme';
|
|
12
|
+
export type { Locale } from './locales/';
|
|
13
|
+
export { darkTheme } from './themes/darkTheme';
|
|
14
|
+
export { lightTheme } from './themes/lightTheme';
|
|
15
|
+
export { connectorsForWallets } from './wallets/connectorsForWallets';
|
|
16
|
+
export { getDefaultWallets } from './wallets/getDefaultWallets';
|
|
17
|
+
export { getWalletConnectConnector } from './wallets/getWalletConnectConnector';
|
|
18
|
+
export type { Wallet, WalletList } from './wallets/Wallet';
|
package/dist/index.js
CHANGED
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
useFunCheckoutModal,
|
|
32
32
|
useFunkitCheckout,
|
|
33
33
|
useWalletConnectors
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-BQU2NRO5.js";
|
|
35
35
|
import {
|
|
36
36
|
darkTheme
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-UOUEGWLS.js";
|
|
38
38
|
import {
|
|
39
39
|
lightTheme
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-Q73FKLU4.js";
|
|
41
41
|
import "./chunk-VP4CAK4A.js";
|
|
42
42
|
|
|
43
43
|
// src/components/ConnectOptions/MobileOptions.tsx
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type * as I18nTypes from 'i18n-js';
|
|
2
|
+
export type Locale = 'ar' | 'ar-AR' | 'en' | 'en-US' | 'es' | 'es-419' | 'fr' | 'fr-FR' | 'hi' | 'hi-IN' | 'id' | 'id-ID' | 'ja' | 'ja-JP' | 'ko' | 'ko-KR' | 'pt' | 'pt-BR' | 'ru' | 'ru-RU' | 'th' | 'th-TH' | 'tr' | 'tr-TR' | 'zh' | 'zh-CN';
|
|
3
|
+
export declare const i18n: I18nTypes.I18n;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ThemeVars } from '../css/sprinkles.css';
|
|
2
|
+
declare const fontStacks: {
|
|
3
|
+
readonly rounded: "SFRounded, ui-rounded, \"SF Pro Rounded\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
4
|
+
readonly system: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
5
|
+
readonly fun: "SF Pro, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
6
|
+
};
|
|
7
|
+
type FontStack = keyof typeof fontStacks;
|
|
8
|
+
type RadiusScale = 'large' | 'medium' | 'small' | 'none';
|
|
9
|
+
type Blurs = 'large' | 'small' | 'none';
|
|
10
|
+
interface BaseThemeOptions {
|
|
11
|
+
borderRadius?: RadiusScale;
|
|
12
|
+
fontStack?: FontStack;
|
|
13
|
+
overlayBlur?: Blurs;
|
|
14
|
+
}
|
|
15
|
+
export declare const baseTheme: ({ borderRadius, fontStack, overlayBlur, }: BaseThemeOptions) => Pick<ThemeVars, 'radii' | 'fonts' | 'blurs'>;
|
|
16
|
+
export interface AccentColor {
|
|
17
|
+
accentColor: string;
|
|
18
|
+
accentColorForeground: string;
|
|
19
|
+
}
|
|
20
|
+
export type AccentColorPreset = 'blue' | 'green' | 'red' | 'purple' | 'pink' | 'orange' | 'white';
|
|
21
|
+
export interface ThemeOptions extends BaseThemeOptions {
|
|
22
|
+
accentColor?: string;
|
|
23
|
+
accentColorForeground?: string;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { AccentColor, AccentColorPreset, ThemeOptions } from './baseTheme';
|
|
2
|
+
export declare const darkTheme: {
|
|
3
|
+
({ accentColor, accentColorForeground, ...baseThemeOptions }?: ThemeOptions): {
|
|
4
|
+
colors: {
|
|
5
|
+
accentColor: string;
|
|
6
|
+
accentColorForeground: string;
|
|
7
|
+
actionButtonBorder: string;
|
|
8
|
+
actionButtonBorderMobile: string;
|
|
9
|
+
actionButtonSecondaryBackground: string;
|
|
10
|
+
actionButtonDisabled: string;
|
|
11
|
+
closeButton: string;
|
|
12
|
+
closeButtonBackground: string;
|
|
13
|
+
connectButtonBackground: string;
|
|
14
|
+
connectButtonBackgroundError: string;
|
|
15
|
+
connectButtonInnerBackground: string;
|
|
16
|
+
connectButtonText: string;
|
|
17
|
+
connectButtonTextError: string;
|
|
18
|
+
connectionIndicator: string;
|
|
19
|
+
downloadBottomCardBackground: string;
|
|
20
|
+
downloadTopCardBackground: string;
|
|
21
|
+
error: string;
|
|
22
|
+
generalBorder: string;
|
|
23
|
+
generalBorderDim: string;
|
|
24
|
+
menuItemBackground: string;
|
|
25
|
+
modalText: string;
|
|
26
|
+
modalTextDim: string;
|
|
27
|
+
modalTextSecondary: string;
|
|
28
|
+
profileAction: string;
|
|
29
|
+
profileActionHover: string;
|
|
30
|
+
profileForeground: string;
|
|
31
|
+
selectedOptionBorder: string;
|
|
32
|
+
solidLine: string;
|
|
33
|
+
rightTranslucentLine: string;
|
|
34
|
+
leftTranslucentLine: string;
|
|
35
|
+
standby: string;
|
|
36
|
+
loadingBase: string;
|
|
37
|
+
loadingAccent: string;
|
|
38
|
+
modalBackdrop: string;
|
|
39
|
+
modalBackground: string;
|
|
40
|
+
modalBorder: string;
|
|
41
|
+
notificationPrimary: string;
|
|
42
|
+
textPrimary: string;
|
|
43
|
+
textSecondary: string;
|
|
44
|
+
textTertiary: string;
|
|
45
|
+
textDisabled: string;
|
|
46
|
+
textSelection: string;
|
|
47
|
+
inputFieldPrimary: string;
|
|
48
|
+
inputFieldPlaceholder: string;
|
|
49
|
+
inputFieldDisabled: string;
|
|
50
|
+
strokePrimary: string;
|
|
51
|
+
strokeSecondary: string;
|
|
52
|
+
buttonPrimary: string;
|
|
53
|
+
buttonProcessing: string;
|
|
54
|
+
buttonDisabled: string;
|
|
55
|
+
buttonTextPrimary: string;
|
|
56
|
+
buttonTextSecondary: string;
|
|
57
|
+
buttonTextDisabled: string;
|
|
58
|
+
buttonWarning: string;
|
|
59
|
+
buttonTextWarning: string;
|
|
60
|
+
transparent: string;
|
|
61
|
+
};
|
|
62
|
+
shadows: {
|
|
63
|
+
connectButton: string;
|
|
64
|
+
dialog: string;
|
|
65
|
+
profileDetailsAction: string;
|
|
66
|
+
selectedOption: string;
|
|
67
|
+
selectedWallet: string;
|
|
68
|
+
walletLogo: string;
|
|
69
|
+
};
|
|
70
|
+
fonts: {
|
|
71
|
+
body: string;
|
|
72
|
+
};
|
|
73
|
+
radii: {
|
|
74
|
+
actionButton: string;
|
|
75
|
+
connectButton: string;
|
|
76
|
+
menuButton: string;
|
|
77
|
+
modal: string;
|
|
78
|
+
modalMobile: string;
|
|
79
|
+
};
|
|
80
|
+
blurs: {
|
|
81
|
+
modalOverlay: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
accentColors: Record<AccentColorPreset, AccentColor>;
|
|
85
|
+
};
|
package/dist/themes/darkTheme.js
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { AccentColor, AccentColorPreset, ThemeOptions } from './baseTheme';
|
|
2
|
+
export declare const lightTheme: {
|
|
3
|
+
({ accentColor, accentColorForeground, ...baseThemeOptions }?: ThemeOptions): {
|
|
4
|
+
colors: {
|
|
5
|
+
accentColor: string;
|
|
6
|
+
accentColorForeground: string;
|
|
7
|
+
actionButtonBorder: string;
|
|
8
|
+
actionButtonBorderMobile: string;
|
|
9
|
+
actionButtonSecondaryBackground: string;
|
|
10
|
+
actionButtonDisabled: string;
|
|
11
|
+
closeButton: string;
|
|
12
|
+
closeButtonBackground: string;
|
|
13
|
+
connectButtonBackground: string;
|
|
14
|
+
connectButtonBackgroundError: string;
|
|
15
|
+
connectButtonInnerBackground: string;
|
|
16
|
+
connectButtonText: string;
|
|
17
|
+
connectButtonTextError: string;
|
|
18
|
+
connectionIndicator: string;
|
|
19
|
+
downloadBottomCardBackground: string;
|
|
20
|
+
downloadTopCardBackground: string;
|
|
21
|
+
error: string;
|
|
22
|
+
generalBorder: string;
|
|
23
|
+
generalBorderDim: string;
|
|
24
|
+
menuItemBackground: string;
|
|
25
|
+
modalText: string;
|
|
26
|
+
modalTextDim: string;
|
|
27
|
+
modalTextSecondary: string;
|
|
28
|
+
profileAction: string;
|
|
29
|
+
profileActionHover: string;
|
|
30
|
+
profileForeground: string;
|
|
31
|
+
selectedOptionBorder: string;
|
|
32
|
+
solidLine: string;
|
|
33
|
+
rightTranslucentLine: string;
|
|
34
|
+
leftTranslucentLine: string;
|
|
35
|
+
standby: string;
|
|
36
|
+
loadingBase: string;
|
|
37
|
+
loadingAccent: string;
|
|
38
|
+
modalBackdrop: string;
|
|
39
|
+
modalBackground: string;
|
|
40
|
+
modalBorder: string;
|
|
41
|
+
notificationPrimary: string;
|
|
42
|
+
textPrimary: string;
|
|
43
|
+
textSecondary: string;
|
|
44
|
+
textTertiary: string;
|
|
45
|
+
textDisabled: string;
|
|
46
|
+
textSelection: string;
|
|
47
|
+
inputFieldPrimary: string;
|
|
48
|
+
inputFieldPlaceholder: string;
|
|
49
|
+
inputFieldDisabled: string;
|
|
50
|
+
strokePrimary: string;
|
|
51
|
+
strokeSecondary: string;
|
|
52
|
+
buttonPrimary: string;
|
|
53
|
+
buttonProcessing: string;
|
|
54
|
+
buttonDisabled: string;
|
|
55
|
+
buttonWarning: string;
|
|
56
|
+
buttonTextWarning: string;
|
|
57
|
+
buttonTextPrimary: string;
|
|
58
|
+
buttonTextSecondary: string;
|
|
59
|
+
buttonTextDisabled: string;
|
|
60
|
+
transparent: string;
|
|
61
|
+
};
|
|
62
|
+
shadows: {
|
|
63
|
+
connectButton: string;
|
|
64
|
+
dialog: string;
|
|
65
|
+
profileDetailsAction: string;
|
|
66
|
+
selectedOption: string;
|
|
67
|
+
selectedWallet: string;
|
|
68
|
+
walletLogo: string;
|
|
69
|
+
};
|
|
70
|
+
fonts: {
|
|
71
|
+
body: string;
|
|
72
|
+
};
|
|
73
|
+
radii: {
|
|
74
|
+
actionButton: string;
|
|
75
|
+
connectButton: string;
|
|
76
|
+
menuButton: string;
|
|
77
|
+
modal: string;
|
|
78
|
+
modalMobile: string;
|
|
79
|
+
};
|
|
80
|
+
blurs: {
|
|
81
|
+
modalOverlay: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
accentColors: Record<AccentColorPreset, AccentColor>;
|
|
85
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function TransactionStoreProvider({ children, }: {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}): React.JSX.Element;
|
|
5
|
+
export declare function useTransactionStore(): {
|
|
6
|
+
addTransaction: (account: string, chainId: number, transaction: import("./transactionStore").NewTransaction) => void;
|
|
7
|
+
clearTransactions: (account: string, chainId: number) => void;
|
|
8
|
+
getTransactions: (account: string, chainId: number) => import("./transactionStore").Transaction[];
|
|
9
|
+
onChange: (fn: () => void) => () => void;
|
|
10
|
+
setProvider: (newProvider: {
|
|
11
|
+
account: undefined;
|
|
12
|
+
batch?: {
|
|
13
|
+
multicall?: boolean | {
|
|
14
|
+
batchSize?: number | undefined;
|
|
15
|
+
wait?: number | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
cacheTime: number;
|
|
19
|
+
chain: import("viem").Chain | undefined;
|
|
20
|
+
key: string;
|
|
21
|
+
name: string;
|
|
22
|
+
pollingInterval: number;
|
|
23
|
+
request: import("viem").EIP1193RequestFn<import("viem").PublicRpcSchema>;
|
|
24
|
+
transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
|
|
25
|
+
type: string;
|
|
26
|
+
uid: string;
|
|
27
|
+
call: (parameters: import("viem").CallParameters<import("viem").Chain | undefined>) => Promise<import("viem").CallReturnType>;
|
|
28
|
+
createBlockFilter: () => Promise<{
|
|
29
|
+
id: `0x${string}`;
|
|
30
|
+
request: import("viem").EIP1193RequestFn<readonly [{
|
|
31
|
+
Method: "eth_getFilterChanges";
|
|
32
|
+
Parameters: [filterId: `0x${string}`];
|
|
33
|
+
ReturnType: `0x${string}`[] | import("viem").RpcLog[];
|
|
34
|
+
}, {
|
|
35
|
+
Method: "eth_getFilterLogs";
|
|
36
|
+
Parameters: [filterId: `0x${string}`];
|
|
37
|
+
ReturnType: import("viem").RpcLog[];
|
|
38
|
+
}, {
|
|
39
|
+
Method: "eth_uninstallFilter";
|
|
40
|
+
Parameters: [filterId: `0x${string}`];
|
|
41
|
+
ReturnType: boolean;
|
|
42
|
+
}]>;
|
|
43
|
+
type: "block";
|
|
44
|
+
}>;
|
|
45
|
+
createContractEventFilter: <const TAbi extends unknown, TEventName extends string | undefined, TArgs extends import("viem/_types/types/contract").MaybeExtractEventArgsFromAbi<TAbi, TEventName> | undefined, TStrict extends boolean | undefined = undefined, TFromBlock extends bigint | import("viem").BlockTag | undefined = undefined, TToBlock extends bigint | import("viem").BlockTag | undefined = undefined>(args: import("viem").CreateContractEventFilterParameters<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>) => Promise<import("viem").CreateContractEventFilterReturnType<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>>;
|
|
46
|
+
createEventFilter: <const TAbiEvent extends unknown = undefined, const TAbiEvents extends readonly unknown[] | readonly AbiEvent[] | undefined = TAbiEvent extends AbiEvent ? [TAbiEvent] : undefined, TStrict_1 extends boolean | undefined = undefined, TFromBlock_1 extends bigint | import("viem").BlockTag | undefined = undefined, TToBlock_1 extends bigint | import("viem").BlockTag | undefined = undefined, _EventName extends string | undefined = import("viem/_types/types/contract").MaybeAbiEventName<TAbiEvent>, _Args extends import("viem/_types/types/contract").MaybeExtractEventArgsFromAbi<TAbiEvents, _EventName> | undefined = undefined>(args?: import("viem").CreateEventFilterParameters<TAbiEvent, TAbiEvents, TStrict_1, TFromBlock_1, TToBlock_1, _EventName, _Args> | undefined) => Promise<import("viem").Filter<"event", TAbiEvents, _EventName, _Args, TStrict_1, TFromBlock_1, TToBlock_1> extends infer T ? { [K in keyof T]: import("viem").Filter<"event", TAbiEvents, _EventName, _Args, TStrict_1, TFromBlock_1, TToBlock_1>[K]; } : never>;
|
|
47
|
+
createPendingTransactionFilter: () => Promise<{
|
|
48
|
+
id: `0x${string}`;
|
|
49
|
+
request: import("viem").EIP1193RequestFn<readonly [{
|
|
50
|
+
Method: "eth_getFilterChanges";
|
|
51
|
+
Parameters: [filterId: `0x${string}`];
|
|
52
|
+
ReturnType: `0x${string}`[] | import("viem").RpcLog[];
|
|
53
|
+
}, {
|
|
54
|
+
Method: "eth_getFilterLogs";
|
|
55
|
+
Parameters: [filterId: `0x${string}`];
|
|
56
|
+
ReturnType: import("viem").RpcLog[];
|
|
57
|
+
}, {
|
|
58
|
+
Method: "eth_uninstallFilter";
|
|
59
|
+
Parameters: [filterId: `0x${string}`];
|
|
60
|
+
ReturnType: boolean;
|
|
61
|
+
}]>;
|
|
62
|
+
type: "transaction";
|
|
63
|
+
}>;
|
|
64
|
+
estimateContractGas: <TChain extends import("viem").Chain | undefined, const TAbi_1 extends unknown, TFunctionName extends string>(args: import("viem").EstimateContractGasParameters<TAbi_1, TFunctionName, TChain, import("viem").Account | undefined>) => Promise<bigint>;
|
|
65
|
+
estimateGas: (args: import("viem").EstimateGasParameters<import("viem").Chain | undefined, import("viem").Account | undefined>) => Promise<bigint>;
|
|
66
|
+
getBalance: (args: import("viem").GetBalanceParameters) => Promise<bigint>;
|
|
67
|
+
getBlock: <TIncludeTransactions extends boolean = false, TBlockTag extends import("viem").BlockTag = "latest">(args?: import("viem").GetBlockParameters<TIncludeTransactions, TBlockTag> | undefined) => Promise<import("viem").GetBlockReturnType<import("viem").Chain | undefined, TIncludeTransactions, TBlockTag>>;
|
|
68
|
+
getBlockNumber: (args?: import("viem").GetBlockNumberParameters | undefined) => Promise<bigint>;
|
|
69
|
+
getBlockTransactionCount: (args?: import("viem").GetBlockTransactionCountParameters | undefined) => Promise<number>;
|
|
70
|
+
getBytecode: (args: import("viem").GetBytecodeParameters) => Promise<import("viem").GetBytecodeReturnType>;
|
|
71
|
+
getChainId: () => Promise<number>;
|
|
72
|
+
getContractEvents: <const TAbi_2 extends unknown, TEventName_1 extends string | undefined = undefined, TStrict_2 extends boolean | undefined = undefined, TFromBlock_2 extends bigint | import("viem").BlockTag | undefined = undefined, TToBlock_2 extends bigint | import("viem").BlockTag | undefined = undefined>(args: import("viem/_types/actions/public/getContractEvents").GetContractEventsParameters<TAbi_2, TEventName_1, TStrict_2, TFromBlock_2, TToBlock_2>) => Promise<import("viem/_types/actions/public/getContractEvents").GetContractEventsReturnType<TAbi_2, TEventName_1, TStrict_2, TFromBlock_2, TToBlock_2>>;
|
|
73
|
+
getEnsAddress: (args: {
|
|
74
|
+
blockNumber?: bigint | undefined;
|
|
75
|
+
blockTag?: import("viem").BlockTag | undefined;
|
|
76
|
+
coinType?: number | undefined;
|
|
77
|
+
name: string;
|
|
78
|
+
universalResolverAddress?: any;
|
|
79
|
+
}) => Promise<any>;
|
|
80
|
+
getEnsAvatar: (args: {
|
|
81
|
+
name: string;
|
|
82
|
+
blockNumber?: bigint | undefined;
|
|
83
|
+
blockTag?: import("viem").BlockTag | undefined;
|
|
84
|
+
universalResolverAddress?: any;
|
|
85
|
+
gatewayUrls?: import("viem").AssetGatewayUrls | undefined;
|
|
86
|
+
}) => Promise<import("viem/ens").GetEnsAvatarReturnType>;
|
|
87
|
+
getEnsName: (args: {
|
|
88
|
+
blockNumber?: bigint | undefined;
|
|
89
|
+
blockTag?: import("viem").BlockTag | undefined;
|
|
90
|
+
address: Address;
|
|
91
|
+
universalResolverAddress?: any;
|
|
92
|
+
}) => Promise<import("viem").GetEnsNameReturnType>;
|
|
93
|
+
getEnsResolver: (args: {
|
|
94
|
+
blockNumber?: bigint | undefined;
|
|
95
|
+
blockTag?: import("viem").BlockTag | undefined;
|
|
96
|
+
name: string;
|
|
97
|
+
universalResolverAddress?: any;
|
|
98
|
+
}) => Promise<Address>;
|
|
99
|
+
getEnsText: (args: {
|
|
100
|
+
blockNumber?: bigint | undefined;
|
|
101
|
+
blockTag?: import("viem").BlockTag | undefined;
|
|
102
|
+
name: string;
|
|
103
|
+
key: string;
|
|
104
|
+
universalResolverAddress?: any;
|
|
105
|
+
}) => Promise<import("viem/ens").GetEnsTextReturnType>;
|
|
106
|
+
getFeeHistory: (args: import("viem").GetFeeHistoryParameters) => Promise<import("viem").GetFeeHistoryReturnType>;
|
|
107
|
+
estimateFeesPerGas: <TChainOverride extends import("viem").Chain | undefined, TType extends import("viem").FeeValuesType = "eip1559">(args?: import("viem").EstimateFeesPerGasParameters<import("viem").Chain | undefined, TChainOverride, TType> | undefined) => Promise<import("viem").EstimateFeesPerGasReturnType>;
|
|
108
|
+
getFilterChanges: <TFilterType extends import("viem/_types/types/filter").FilterType, const TAbi_3 extends unknown, TEventName_2 extends string | undefined, TStrict_3 extends boolean | undefined = undefined, TFromBlock_3 extends bigint | import("viem").BlockTag | undefined = undefined, TToBlock_3 extends bigint | import("viem").BlockTag | undefined = undefined>(args: import("viem").GetFilterChangesParameters<TFilterType, TAbi_3, TEventName_2, TStrict_3, TFromBlock_3, TToBlock_3>) => Promise<import("viem").GetFilterChangesReturnType<TFilterType, TAbi_3, TEventName_2, TStrict_3, TFromBlock_3, TToBlock_3>>;
|
|
109
|
+
getFilterLogs: <const TAbi_4 extends unknown, TEventName_3 extends string | undefined, TStrict_4 extends boolean | undefined = undefined, TFromBlock_4 extends bigint | import("viem").BlockTag | undefined = undefined, TToBlock_4 extends bigint | import("viem").BlockTag | undefined = undefined>(args: import("viem").GetFilterLogsParameters<TAbi_4, TEventName_3, TStrict_4, TFromBlock_4, TToBlock_4>) => Promise<import("viem").GetFilterLogsReturnType<TAbi_4, TEventName_3, TStrict_4, TFromBlock_4, TToBlock_4>>;
|
|
110
|
+
getGasPrice: () => Promise<bigint>;
|
|
111
|
+
getLogs: <const TAbiEvent_1 extends unknown = undefined, const TAbiEvents_1 extends readonly unknown[] | readonly AbiEvent[] | undefined = TAbiEvent_1 extends AbiEvent ? [TAbiEvent_1] : undefined, TStrict_5 extends boolean | undefined = undefined, TFromBlock_5 extends bigint | import("viem").BlockTag | undefined = undefined, TToBlock_5 extends bigint | import("viem").BlockTag | undefined = undefined>(args?: import("viem").GetLogsParameters<TAbiEvent_1, TAbiEvents_1, TStrict_5, TFromBlock_5, TToBlock_5> | undefined) => Promise<import("viem").GetLogsReturnType<TAbiEvent_1, TAbiEvents_1, TStrict_5, TFromBlock_5, TToBlock_5>>;
|
|
112
|
+
getProof: (args: import("viem/_types/actions/public/getProof").GetProofParameters) => Promise<import("viem/_types/actions/public/getProof").GetProofReturnType>;
|
|
113
|
+
estimateMaxPriorityFeePerGas: <TChainOverride_1 extends import("viem").Chain | undefined>(args?: {
|
|
114
|
+
chain: TChainOverride_1 | null;
|
|
115
|
+
} | undefined) => Promise<bigint>;
|
|
116
|
+
getStorageAt: (args: import("viem").GetStorageAtParameters) => Promise<import("viem").GetStorageAtReturnType>;
|
|
117
|
+
getTransaction: <TBlockTag_1 extends import("viem").BlockTag = "latest">(args: import("viem").GetTransactionParameters<TBlockTag_1>) => Promise<import("viem").GetTransactionReturnType<import("viem").Chain | undefined, TBlockTag_1>>;
|
|
118
|
+
getTransactionConfirmations: (args: import("viem").GetTransactionConfirmationsParameters<import("viem").Chain | undefined>) => Promise<bigint>;
|
|
119
|
+
getTransactionCount: (args: import("viem").GetTransactionCountParameters) => Promise<number>;
|
|
120
|
+
getTransactionReceipt: (args: import("viem").GetTransactionReceiptParameters) => Promise<import("viem").TransactionReceipt>;
|
|
121
|
+
multicall: <TContracts extends import("viem").ContractFunctionConfig[], TAllowFailure extends boolean = true>(args: import("viem").MulticallParameters<TContracts, TAllowFailure>) => Promise<import("viem").MulticallReturnType<TContracts, TAllowFailure>>;
|
|
122
|
+
prepareTransactionRequest: <TChainOverride_2 extends import("viem").Chain | undefined>(args: import("viem").PrepareTransactionRequestParameters<import("viem").Chain | undefined, import("viem").Account | undefined, TChainOverride_2>) => Promise<import("viem").PrepareTransactionRequestReturnType>;
|
|
123
|
+
readContract: <const TAbi_5 extends unknown, TFunctionName_1 extends string>(args: import("viem").ReadContractParameters<TAbi_5, TFunctionName_1>) => Promise<unknown>;
|
|
124
|
+
sendRawTransaction: (args: import("viem/_types/actions/wallet/sendRawTransaction").SendRawTransactionParameters) => Promise<`0x${string}`>;
|
|
125
|
+
simulateContract: <const TAbi_6 extends unknown, TFunctionName_2 extends string, TChainOverride_3 extends import("viem").Chain | undefined>(args: import("viem").SimulateContractParameters<TAbi_6, TFunctionName_2, import("viem").Chain | undefined, TChainOverride_3>) => Promise<import("viem").SimulateContractReturnType<TAbi_6, TFunctionName_2, import("viem").Chain | undefined, TChainOverride_3>>;
|
|
126
|
+
verifyMessage: (args: import("viem/_types/actions/public/verifyMessage").VerifyMessageParameters) => Promise<boolean>;
|
|
127
|
+
verifyTypedData: (args: import("viem/_types/actions/public/verifyTypedData").VerifyTypedDataParameters) => Promise<boolean>;
|
|
128
|
+
uninstallFilter: (args: import("viem").UninstallFilterParameters) => Promise<boolean>;
|
|
129
|
+
waitForTransactionReceipt: (args: import("viem").WaitForTransactionReceiptParameters<import("viem").Chain | undefined>) => Promise<import("viem").TransactionReceipt>;
|
|
130
|
+
watchBlockNumber: (args: import("viem").WatchBlockNumberParameters) => import("viem").WatchBlockNumberReturnType;
|
|
131
|
+
watchBlocks: <TIncludeTransactions_1 extends boolean = false, TBlockTag_2 extends import("viem").BlockTag = "latest">(args: import("viem").WatchBlocksParameters<import("viem").Transport, import("viem").Chain | undefined, TIncludeTransactions_1, TBlockTag_2>) => import("viem").WatchBlocksReturnType;
|
|
132
|
+
watchContractEvent: <const TAbi_7 extends unknown, TEventName_4 extends string, TStrict_6 extends boolean | undefined = undefined>(args: import("viem").WatchContractEventParameters<TAbi_7, TEventName_4, TStrict_6>) => import("viem").WatchContractEventReturnType;
|
|
133
|
+
watchEvent: <const TAbiEvent_2 extends unknown = undefined, const TAbiEvents_2 extends readonly unknown[] | readonly AbiEvent[] | undefined = TAbiEvent_2 extends AbiEvent ? [TAbiEvent_2] : undefined, TStrict_7 extends boolean | undefined = undefined>(args: import("viem").WatchEventParameters<TAbiEvent_2, TAbiEvents_2, TStrict_7>) => import("viem").WatchEventReturnType;
|
|
134
|
+
watchPendingTransactions: (args: import("viem").WatchPendingTransactionsParameters<import("viem").Transport>) => import("viem").WatchPendingTransactionsReturnType;
|
|
135
|
+
extend: <const client extends {
|
|
136
|
+
[x: string]: unknown;
|
|
137
|
+
account?: undefined;
|
|
138
|
+
batch?: undefined;
|
|
139
|
+
cacheTime?: undefined;
|
|
140
|
+
chain?: undefined;
|
|
141
|
+
key?: undefined;
|
|
142
|
+
name?: undefined;
|
|
143
|
+
pollingInterval?: undefined;
|
|
144
|
+
request?: undefined;
|
|
145
|
+
transport?: undefined;
|
|
146
|
+
type?: undefined;
|
|
147
|
+
uid?: undefined;
|
|
148
|
+
}>(fn: (client: import("viem").Client<import("viem").Transport, import("viem").Chain | undefined, undefined, import("viem").PublicRpcSchema, import("viem").PublicActions<import("viem").Transport, import("viem").Chain | undefined>>) => client) => import("viem").Client<import("viem").Transport, import("viem").Chain | undefined, undefined, import("viem").PublicRpcSchema, { [K_1 in keyof client]: client[K_1]; } & import("viem").PublicActions<import("viem").Transport, import("viem").Chain | undefined>>;
|
|
149
|
+
}) => void;
|
|
150
|
+
waitForPendingTransactions: (account: string, chainId: number) => Promise<void>;
|
|
151
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { PublicClient } from 'viem';
|
|
2
|
+
type TransactionStatus = 'pending' | 'confirmed' | 'failed';
|
|
3
|
+
export interface Transaction {
|
|
4
|
+
hash: string;
|
|
5
|
+
description: string;
|
|
6
|
+
status: TransactionStatus;
|
|
7
|
+
confirmations?: number;
|
|
8
|
+
}
|
|
9
|
+
export type NewTransaction = Omit<Transaction, 'status'>;
|
|
10
|
+
export declare function createTransactionStore({ provider: initialProvider, }: {
|
|
11
|
+
provider: PublicClient;
|
|
12
|
+
}): {
|
|
13
|
+
addTransaction: (account: string, chainId: number, transaction: NewTransaction) => void;
|
|
14
|
+
clearTransactions: (account: string, chainId: number) => void;
|
|
15
|
+
getTransactions: (account: string, chainId: number) => Transaction[];
|
|
16
|
+
onChange: (fn: () => void) => () => void;
|
|
17
|
+
setProvider: (newProvider: PublicClient) => void;
|
|
18
|
+
waitForPendingTransactions: (account: string, chainId: number) => Promise<void>;
|
|
19
|
+
};
|
|
20
|
+
export type TransactionStore = ReturnType<typeof createTransactionStore>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useClearRecentTransactions(): () => void;
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare class FunLogger {
|
|
2
|
+
protected apiKey: string | null;
|
|
3
|
+
protected isDebugMode: boolean;
|
|
4
|
+
protected userId: string | null;
|
|
5
|
+
constructor();
|
|
6
|
+
private getFunLogEnv;
|
|
7
|
+
private decorateLogDataForDdog;
|
|
8
|
+
private onDebug;
|
|
9
|
+
private onInfo;
|
|
10
|
+
private onWarn;
|
|
11
|
+
private onError;
|
|
12
|
+
/**========================
|
|
13
|
+
* PUBLIC LOGGER FUNCTIONS
|
|
14
|
+
*=========================*/
|
|
15
|
+
log(title: string, data?: object): void;
|
|
16
|
+
info(title: string, data?: object): void;
|
|
17
|
+
debug(title: string, data?: object): void;
|
|
18
|
+
warn(title: string, data?: object): void;
|
|
19
|
+
error(title: string, error: Error, data?: object): void;
|
|
20
|
+
configure(apiKey: string | null, isDebug: boolean): void;
|
|
21
|
+
getUserId(): string | null;
|
|
22
|
+
setUserId(userId: string): void;
|
|
23
|
+
}
|
|
24
|
+
declare const logger: FunLogger;
|
|
25
|
+
export { logger };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function isSafari(): boolean;
|
|
2
|
+
export declare function isArc(): boolean;
|
|
3
|
+
export declare enum BrowserType {
|
|
4
|
+
Arc = "Arc",
|
|
5
|
+
Brave = "Brave",
|
|
6
|
+
Browser = "Browser",
|
|
7
|
+
Chrome = "Chrome",
|
|
8
|
+
Edge = "Edge",
|
|
9
|
+
Firefox = "Firefox",
|
|
10
|
+
Opera = "Opera",
|
|
11
|
+
Safari = "Safari"
|
|
12
|
+
}
|
|
13
|
+
export declare function getBrowser(): BrowserType;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { CheckoutHistoryItem, CheckoutState } from '@funkit/core';
|
|
2
|
+
import { Hex } from 'viem';
|
|
3
|
+
import { FunkitCheckoutConfig } from '../components/FunkitProvider/FunkitCheckoutContext';
|
|
4
|
+
export declare const MOONPAY_TIME_ESTIMATE_MS = 120000;
|
|
5
|
+
export declare const MESH_TIME_ESTIMATE_MS = 300000;
|
|
6
|
+
export declare const DUMMY_TRANSFER_PARAMS: {
|
|
7
|
+
toAddress: string;
|
|
8
|
+
tokenAmount: number;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Validates the checkout configuration.
|
|
12
|
+
* @param config - The checkout configuration to validate.
|
|
13
|
+
* @returns An object indicating whether the configuration is valid and a message if it is not.
|
|
14
|
+
*/
|
|
15
|
+
export declare function validateCheckoutConfig(config: FunkitCheckoutConfig): {
|
|
16
|
+
isValid: boolean;
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Checks whether user has sufficient targetAsset + targetAssetAmount in their funwallet
|
|
21
|
+
*/
|
|
22
|
+
export declare const testAutoExecutionDuringCheckout: (config: FunkitCheckoutConfig, walletAddress: string) => Promise<{
|
|
23
|
+
result: boolean;
|
|
24
|
+
tokenTicker: string;
|
|
25
|
+
} | {
|
|
26
|
+
result: boolean;
|
|
27
|
+
tokenTicker: null;
|
|
28
|
+
}>;
|
|
29
|
+
export declare function getTokenAddress(tokenTicker: string, chainId: string): Promise<`0x${string}`>;
|
|
30
|
+
export declare function getFunkitEnvForDirectExecution({ chainId, }: {
|
|
31
|
+
chainId: string;
|
|
32
|
+
}): {
|
|
33
|
+
chain: string;
|
|
34
|
+
gasSponsor: {
|
|
35
|
+
sponsorAddress?: `0x${string}` | undefined;
|
|
36
|
+
token?: string | undefined;
|
|
37
|
+
usePermit?: boolean | undefined;
|
|
38
|
+
useCheckoutSponsor?: boolean | undefined;
|
|
39
|
+
};
|
|
40
|
+
apiKey?: string | undefined;
|
|
41
|
+
fee?: {
|
|
42
|
+
token?: string | undefined;
|
|
43
|
+
amount?: number | undefined;
|
|
44
|
+
gasPercent?: number | undefined;
|
|
45
|
+
recipient: `0x${string}`;
|
|
46
|
+
} | undefined;
|
|
47
|
+
skipDBAction?: boolean | undefined;
|
|
48
|
+
nonce?: bigint | undefined;
|
|
49
|
+
bypassInit?: boolean | undefined;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Generates an env config for checkout estimation
|
|
53
|
+
* So that batch operation creation will not fail even if FW has insufficient funds to pass the estimation.
|
|
54
|
+
*/
|
|
55
|
+
export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalletInit, }: {
|
|
56
|
+
chainId: string;
|
|
57
|
+
bypassWalletInit: boolean;
|
|
58
|
+
}): {
|
|
59
|
+
chain: string;
|
|
60
|
+
gasSponsor: {
|
|
61
|
+
useCheckoutSponsor: boolean;
|
|
62
|
+
sponsorAddress: any;
|
|
63
|
+
token?: string | undefined;
|
|
64
|
+
usePermit?: boolean | undefined;
|
|
65
|
+
};
|
|
66
|
+
bypassInit: boolean;
|
|
67
|
+
apiKey?: string | undefined;
|
|
68
|
+
fee?: {
|
|
69
|
+
token?: string | undefined;
|
|
70
|
+
amount?: number | undefined;
|
|
71
|
+
gasPercent?: number | undefined;
|
|
72
|
+
recipient: `0x${string}`;
|
|
73
|
+
} | undefined;
|
|
74
|
+
skipDBAction?: boolean | undefined;
|
|
75
|
+
nonce?: bigint | undefined;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Decorates a list of token strings with their chainId-specific tokenAddress and pickedChainId
|
|
79
|
+
* @param tokenList List of token strings e.g. ['ETH', 'MATIC', ...]
|
|
80
|
+
* @param targetChainId The targetChain identifier of the checkout
|
|
81
|
+
* @returns List of tokenItem objects
|
|
82
|
+
*/
|
|
83
|
+
export declare function decorateTokenList(tokensChainMap: {
|
|
84
|
+
[ticker: string]: {
|
|
85
|
+
[chainId: string]: true;
|
|
86
|
+
};
|
|
87
|
+
}, targetChainId: string): Promise<{
|
|
88
|
+
symbol: string;
|
|
89
|
+
tokenAddress: null | Hex;
|
|
90
|
+
tokenUnitPriceUsd: null | number;
|
|
91
|
+
pickedChainId: string;
|
|
92
|
+
}[]>;
|
|
93
|
+
export interface CheckoutHistoryDepositAddrMap {
|
|
94
|
+
[depositAddr: string]: CheckoutHistoryItem;
|
|
95
|
+
}
|
|
96
|
+
export interface CheckoutHistoryStateMap {
|
|
97
|
+
[checkoutState: string]: CheckoutHistoryItem[];
|
|
98
|
+
}
|
|
99
|
+
export declare function categorizeCheckoutHistories(checkoutHistoryList: CheckoutHistoryItem[]): {
|
|
100
|
+
stateMap: CheckoutHistoryStateMap;
|
|
101
|
+
depositAddrMap: CheckoutHistoryDepositAddrMap;
|
|
102
|
+
};
|
|
103
|
+
export declare function getCheckoutStateStepNumber(state: CheckoutState): 0 | 1 | 3 | 2;
|
|
104
|
+
export declare function formatTokenAmountForMoonpay(amount: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function flatten<Item>(array: Item[][]): Item[];
|