@funkit/connect 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-X5YTL45L.js → chunk-6NU6GSSJ.js} +6988 -6584
- package/dist/{chunk-3A7E2IPT.js → chunk-W7RO4DCA.js} +33 -14
- package/dist/{chunk-PKSFBURG.js → chunk-ZKI6VFDD.js} +24 -5
- package/dist/components/index.css +861 -341
- package/dist/components/index.js +3 -2
- package/dist/index.css +848 -328
- package/dist/index.js +65 -118
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/{chunk-4TBAMXD2.js → chunk-237HEA4B.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-7Q7X4HIR.js → chunk-3YVOYNPH.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-4HP4HVWX.js → chunk-74BR2RAM.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-C6BBHBY3.js → chunk-7HTS7H5B.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TM5A4D5D.js → chunk-D76EMZT2.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-WPGD3FGN.js → chunk-EBNKDT5H.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-TFHNF64Z.js → chunk-ECNJY6H5.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-EUSM6MRB.js +158 -0
- package/dist/wallets/walletConnectors/{chunk-WCZ37NN2.js → chunk-IVIQBLOK.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-VDUTD5UR.js → chunk-JARWK7S5.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-PVTJW4KE.js → chunk-JC5DQVHX.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-QVJQ2MU7.js → chunk-JVF24YQM.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-T2DNUVKD.js → chunk-K4AO45B3.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-EINKDQQW.js → chunk-KGIRU665.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-JU27WJ7W.js → chunk-M5VGZ2QW.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-32KC4FTG.js → chunk-NJGDUFM2.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-C3X4W5P4.js → chunk-OH3HGTQV.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-K342MEBF.js → chunk-PATI3A3F.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HHEZNZRR.js → chunk-RLZP75FI.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-HKBLG5YG.js → chunk-W4DY35PZ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-M4KIVTE3.js → chunk-WXWQQHAQ.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-CESIYSTD.js → chunk-YJR5S7NP.js} +4 -4
- package/dist/wallets/walletConnectors/{chunk-RMJYZWKN.js → chunk-ZGVEVXA7.js} +1 -1
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +57 -57
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.js +2 -2
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +9 -6
- package/dist/__private__/index.d.ts +0 -8
- package/dist/chunk-VVHY6TFA.js +0 -24443
- package/dist/components/AccountModal/AccountModal.d.ts +0 -6
- package/dist/components/AsyncImage/AsyncImage.d.ts +0 -19
- package/dist/components/AsyncImage/useAsyncImage.d.ts +0 -3
- package/dist/components/Avatar/Avatar.d.ts +0 -9
- package/dist/components/Avatar/EmojiAvatar.d.ts +0 -2
- package/dist/components/Avatar/emojiAvatarForAddress.d.ts +0 -106
- package/dist/components/Box/Box.d.ts +0 -82
- package/dist/components/Button/ActionButton.d.ts +0 -14
- package/dist/components/ChainModal/ChainModal.css.d.ts +0 -2
- package/dist/components/ChainModal/ChainModal.d.ts +0 -6
- package/dist/components/CloseButton/CloseButton.d.ts +0 -5
- package/dist/components/ConnectButton/ConnectButton.d.ts +0 -28
- package/dist/components/ConnectButton/ConnectButtonRenderer.d.ts +0 -39
- package/dist/components/ConnectButton/abbreviateETHBalance.d.ts +0 -2
- package/dist/components/ConnectButton/formatAddress.d.ts +0 -1
- package/dist/components/ConnectButton/formatENS.d.ts +0 -1
- package/dist/components/ConnectModal/ConnectModalIntro.d.ts +0 -5
- package/dist/components/ConnectOptions/ConnectDetails.d.ts +0 -36
- package/dist/components/ConnectOptions/DesktopOptions.css.d.ts +0 -4
- package/dist/components/ConnectOptions/DesktopOptions.d.ts +0 -15
- package/dist/components/ConnectOptions/FunConnectOptions.d.ts +0 -11
- package/dist/components/ConnectOptions/MobileOptions.css.d.ts +0 -1
- package/dist/components/ConnectOptions/MobileOptions.d.ts +0 -4
- package/dist/components/Dialog/Dialog.css.d.ts +0 -5
- package/dist/components/Dialog/Dialog.d.ts +0 -12
- package/dist/components/Dialog/DialogContent.css.d.ts +0 -6
- package/dist/components/Dialog/DialogContent.d.ts +0 -12
- package/dist/components/Dialog/FocusTrap.d.ts +0 -2
- package/dist/components/Disclaimer/DisclaimerLink.d.ts +0 -5
- package/dist/components/Disclaimer/DisclaimerText.d.ts +0 -4
- package/dist/components/FunButton/FunBackButton.d.ts +0 -4
- package/dist/components/FunButton/FunButton.css.d.ts +0 -3
- package/dist/components/FunButton/FunButton.d.ts +0 -17
- package/dist/components/FunButton/FunIconButton.d.ts +0 -16
- package/dist/components/FunButton/FunLinkButton.d.ts +0 -8
- package/dist/components/FunButton/FunViewTxButton.d.ts +0 -4
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +0 -7
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryModal.d.ts +0 -8
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmation.css.d.ts +0 -7
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +0 -9
- package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +0 -15
- package/dist/components/FunCheckoutModal/FunCheckoutPrimaryInfo.d.ts +0 -9
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.css.d.ts +0 -7
- package/dist/components/FunCheckoutModal/FunCheckoutSelectAssetStep.d.ts +0 -12
- package/dist/components/FunCheckoutModal/FunCheckoutVerifyDetailsStep.d.ts +0 -6
- package/dist/components/FunConfirmDialog/FunConfirmDialog.d.ts +0 -12
- package/dist/components/FunConnectModal/FunConnectModal.d.ts +0 -6
- package/dist/components/FunContainer/FunContainer.d.ts +0 -11
- package/dist/components/FunDevTestModal/FunDevTestModal.d.ts +0 -6
- package/dist/components/FunDivider/FunDivider.d.ts +0 -6
- package/dist/components/FunInput/FunInput.d.ts +0 -29
- package/dist/components/FunKeyValue/FunKeyValue.d.ts +0 -24
- package/dist/components/FunMeshTwoFactorStep/FunMeshTwoFactorStep.d.ts +0 -9
- package/dist/components/FunModalTitleSection/FunModalTitleSection.css.d.ts +0 -7
- package/dist/components/FunModalTitleSection/FunModalTitleSection.d.ts +0 -12
- package/dist/components/FunNotification/FunCheckoutNotification.d.ts +0 -6
- package/dist/components/FunNotification/FunNotification.d.ts +0 -12
- package/dist/components/FunOnramp/FunOnramp.css.d.ts +0 -7
- package/dist/components/FunOnramp/FunOnrampConfirmation.css.d.ts +0 -7
- package/dist/components/FunOnramp/FunOnrampConfirmationStep.d.ts +0 -17
- package/dist/components/FunOnramp/FunOnrampInputStep.d.ts +0 -8
- package/dist/components/FunOnramp/FunOnrampPrimaryItem.d.ts +0 -5
- package/dist/components/FunOnramp/FunOnrampProcessingStep.d.ts +0 -6
- package/dist/components/FunPayments/FunPaymentMeshType.css.d.ts +0 -7
- package/dist/components/FunPayments/FunPaymentMeshType.d.ts +0 -10
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +0 -52
- package/dist/components/FunPayments/FunPaymentMoonpayType.css.d.ts +0 -10
- package/dist/components/FunPayments/FunPaymentMoonpayType.d.ts +0 -13
- package/dist/components/FunPayments/FunPaymentSetup.d.ts +0 -18
- package/dist/components/FunPayments/FunPaymentTransferType.css.d.ts +0 -7
- package/dist/components/FunPayments/FunPaymentTransferType.d.ts +0 -6
- package/dist/components/FunPayments/FunPayments.css.d.ts +0 -7
- package/dist/components/FunProgressBar/FunHorizontalStepper.d.ts +0 -7
- package/dist/components/FunProgressBar/FunProgressBar.d.ts +0 -6
- package/dist/components/FunProgressBar/FunVerticalProgressBar.d.ts +0 -14
- package/dist/components/FunSelect/FunClickOutside.d.ts +0 -8
- package/dist/components/FunSelect/FunSelect.d.ts +0 -24
- package/dist/components/FunSignInFlow/FunSignInStep.css.d.ts +0 -2
- package/dist/components/FunSignInFlow/FunSignInStep.d.ts +0 -14
- package/dist/components/FunSignInFlow/FunWeb2ConnectingStep/FunWeb2ConnectingStep.css.d.ts +0 -7
- package/dist/components/FunSignInFlow/FunWeb2ConnectingStep/FunWeb2ConnectingStep.d.ts +0 -9
- package/dist/components/FunSignInFlow/FunWeb3ConnectingStep.css.d.ts +0 -7
- package/dist/components/FunSignInFlow/FunWeb3ConnectingStep.d.ts +0 -9
- package/dist/components/FunStates/FunErrorContent.d.ts +0 -10
- package/dist/components/FunTermsAndConditionsTextButton/FunTermsAndConditionsTextButton.d.ts +0 -2
- package/dist/components/FunToast/FunShortToast.css.d.ts +0 -10
- package/dist/components/FunToast/FunShortToast.d.ts +0 -3
- package/dist/components/FunToast/FunToast.d.ts +0 -18
- package/dist/components/FunTransactionSummary/FunTransactionSummary.d.ts +0 -12
- package/dist/components/FunkitProvider/AppContext.d.ts +0 -25
- package/dist/components/FunkitProvider/AuthenticationContext.d.ts +0 -35
- package/dist/components/FunkitProvider/AvatarContext.d.ts +0 -9
- package/dist/components/FunkitProvider/CoolModeContext.d.ts +0 -2
- package/dist/components/FunkitProvider/FunToastContext.d.ts +0 -11
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +0 -130
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +0 -13
- package/dist/components/FunkitProvider/FunkitProvider.d.ts +0 -37
- package/dist/components/FunkitProvider/FunkitWalletProvider.d.ts +0 -17
- package/dist/components/FunkitProvider/I18nContext.d.ts +0 -9
- package/dist/components/FunkitProvider/ModalContext.d.ts +0 -41
- package/dist/components/FunkitProvider/ModalSizeContext.d.ts +0 -7
- package/dist/components/FunkitProvider/RainbowKitChainContext.d.ts +0 -19
- package/dist/components/FunkitProvider/ShowRecentTransactionsContext.d.ts +0 -2
- package/dist/components/FunkitProvider/provideRainbowKitChains.d.ts +0 -3
- package/dist/components/FunkitProvider/useCoolMode.d.ts +0 -2
- package/dist/components/FunkitProvider/useFingerprint.d.ts +0 -1
- package/dist/components/FunkitProvider/usePreloadImages.d.ts +0 -1
- package/dist/components/FunkitProvider/walletConnectDeepLink.d.ts +0 -5
- package/dist/components/FunkitWeb2Provider/FunkitWeb2Provider.d.ts +0 -58
- package/dist/components/Icons/AcornsIcon.d.ts +0 -2
- package/dist/components/Icons/AlpacaIcon.d.ts +0 -2
- package/dist/components/Icons/Assets.d.ts +0 -3
- package/dist/components/Icons/Back.d.ts +0 -2
- package/dist/components/Icons/BinanceIcon.d.ts +0 -2
- package/dist/components/Icons/BitFlyerIcon.d.ts +0 -2
- package/dist/components/Icons/BitstampIcon.d.ts +0 -2
- package/dist/components/Icons/BridgeIcon.d.ts +0 -2
- package/dist/components/Icons/BybitIcon.d.ts +0 -2
- package/dist/components/Icons/Cancel.d.ts +0 -2
- package/dist/components/Icons/CexloIcon.d.ts +0 -2
- package/dist/components/Icons/ClockIcon.d.ts +0 -2
- package/dist/components/Icons/Close.d.ts +0 -2
- package/dist/components/Icons/Coinbase.d.ts +0 -2
- package/dist/components/Icons/CoinlistIcon.d.ts +0 -2
- package/dist/components/Icons/Connect.d.ts +0 -3
- package/dist/components/Icons/Copied.d.ts +0 -2
- package/dist/components/Icons/Copy.d.ts +0 -2
- package/dist/components/Icons/Create.d.ts +0 -3
- package/dist/components/Icons/CreditCardDots.d.ts +0 -2
- package/dist/components/Icons/CryptoComIcon.d.ts +0 -2
- package/dist/components/Icons/Disconnect.d.ts +0 -2
- package/dist/components/Icons/DisconnectSq.d.ts +0 -4
- package/dist/components/Icons/Dropdown.d.ts +0 -2
- package/dist/components/Icons/EthereumIcon.d.ts +0 -2
- package/dist/components/Icons/EtoroIcon.d.ts +0 -2
- package/dist/components/Icons/EtradeIcon.d.ts +0 -2
- package/dist/components/Icons/Explore.d.ts +0 -2
- package/dist/components/Icons/ExternalLink.d.ts +0 -2
- package/dist/components/Icons/FunArrows.d.ts +0 -5
- package/dist/components/Icons/FunBackIcon.d.ts +0 -2
- package/dist/components/Icons/GateIo.d.ts +0 -2
- package/dist/components/Icons/GeminiIcon.d.ts +0 -2
- package/dist/components/Icons/HuobiIcon.d.ts +0 -2
- package/dist/components/Icons/Icons.css.d.ts +0 -3
- package/dist/components/Icons/Info.d.ts +0 -3
- package/dist/components/Icons/KrakenIcon.d.ts +0 -2
- package/dist/components/Icons/KucoinIcon.d.ts +0 -2
- package/dist/components/Icons/LightningIcon.d.ts +0 -2
- package/dist/components/Icons/LinkIcon.d.ts +0 -2
- package/dist/components/Icons/Login.d.ts +0 -3
- package/dist/components/Icons/LogoutIcon.d.ts +0 -2
- package/dist/components/Icons/MastercardIcon.d.ts +0 -2
- package/dist/components/Icons/MmFox.d.ts +0 -2
- package/dist/components/Icons/NoAssetsFoundIcon.d.ts +0 -4
- package/dist/components/Icons/OkcoinIcon.d.ts +0 -2
- package/dist/components/Icons/OkxIcon.d.ts +0 -2
- package/dist/components/Icons/PasskeyIcon.d.ts +0 -2
- package/dist/components/Icons/PaymentMethodIcons.d.ts +0 -5
- package/dist/components/Icons/PlusIcon.d.ts +0 -2
- package/dist/components/Icons/ProfileIcon.d.ts +0 -2
- package/dist/components/Icons/PublicIcon.d.ts +0 -2
- package/dist/components/Icons/ReceiptIcon.d.ts +0 -2
- package/dist/components/Icons/Refresh.d.ts +0 -3
- package/dist/components/Icons/RobinhoodIcon.d.ts +0 -2
- package/dist/components/Icons/Scan.d.ts +0 -3
- package/dist/components/Icons/SearchIcon.d.ts +0 -4
- package/dist/components/Icons/SettingsIcon.d.ts +0 -2
- package/dist/components/Icons/SocialMediaIcons.d.ts +0 -4
- package/dist/components/Icons/Spinner.d.ts +0 -5
- package/dist/components/Icons/StEthIcon.d.ts +0 -2
- package/dist/components/Icons/StashIcon.d.ts +0 -2
- package/dist/components/Icons/Success.d.ts +0 -2
- package/dist/components/Icons/SuccessNoBorder.d.ts +0 -2
- package/dist/components/Icons/SwapIcon.d.ts +0 -2
- package/dist/components/Icons/SwitchAccount.d.ts +0 -2
- package/dist/components/Icons/TransferIcon.d.ts +0 -2
- package/dist/components/Icons/USDCIcon.d.ts +0 -2
- package/dist/components/Icons/WalletIcon.d.ts +0 -3
- package/dist/components/Icons/WeBullIcon.d.ts +0 -2
- package/dist/components/Icons/WhiteDotIcon.d.ts +0 -2
- package/dist/components/InfoButton/InfoButton.d.ts +0 -5
- package/dist/components/MenuButton/MenuButton.css.d.ts +0 -1
- package/dist/components/MenuButton/MenuButton.d.ts +0 -9
- package/dist/components/ModalSelection/ModalSelection.css.d.ts +0 -1
- package/dist/components/ModalSelection/ModalSelection.d.ts +0 -17
- package/dist/components/ProfileDetails/EoaProfileDetails.d.ts +0 -15
- package/dist/components/ProfileDetails/FunWalletProfileDetails.d.ts +0 -19
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWActivityHistory/FWActivityHistory.css.d.ts +0 -7
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWActivityHistory/FWActivityHistory.d.ts +0 -5
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWBridge.d.ts +0 -9
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWDeposit.d.ts +0 -11
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHome.css.d.ts +0 -17
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHomeCheckoutSection.d.ts +0 -4
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/FWHomeTokenDisplayRow.d.ts +0 -4
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWHome/index.d.ts +0 -6
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.css.d.ts +0 -7
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSettings/FWSettings.d.ts +0 -10
- package/dist/components/ProfileDetails/FunWalletProfileViews/FWSwap.d.ts +0 -5
- package/dist/components/ProfileDetails/FunWalletProfileViews/FunArrowItem.d.ts +0 -4
- package/dist/components/ProfileDetails/FunWalletProfileViews/FunSelectionSection.d.ts +0 -11
- package/dist/components/ProfileDetails/ProfileDetailsAction.d.ts +0 -10
- package/dist/components/QRCode/QRCode.d.ts +0 -13
- package/dist/components/SignIn/SignIn.d.ts +0 -5
- package/dist/components/SkeletalLoader/SkeletalLoader.css.d.ts +0 -1
- package/dist/components/SkeletalLoader/SkeletalLoader.d.ts +0 -2
- package/dist/components/Text/Text.d.ts +0 -18
- package/dist/components/TwoFaInputField/FunTwoFaInput.d.ts +0 -10
- package/dist/components/Txs/TxItem.d.ts +0 -7
- package/dist/components/Txs/TxList.d.ts +0 -7
- package/dist/components/Txs/Txs.css.d.ts +0 -2
- package/dist/components/index.d.ts +0 -4
- package/dist/consts/funkit.d.ts +0 -7
- package/dist/css/animations.css.d.ts +0 -9
- package/dist/css/atoms.d.ts +0 -6
- package/dist/css/cssObjectFromTheme.d.ts +0 -6
- package/dist/css/cssStringFromTheme.d.ts +0 -4
- package/dist/css/reset.css.d.ts +0 -14
- package/dist/css/sprinkles.css.d.ts +0 -2798
- package/dist/css/touchableStyles.css.d.ts +0 -4
- package/dist/css/touchableStyles.d.ts +0 -8
- package/dist/hooks/useChainId.d.ts +0 -1
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +0 -31
- package/dist/hooks/useCheckoutStateBooleans.d.ts +0 -9
- package/dist/hooks/useConnectionStatus.d.ts +0 -7
- package/dist/hooks/useDebouncedCallback.d.ts +0 -1
- package/dist/hooks/useFunListeners.d.ts +0 -8
- package/dist/hooks/useIsMounted.d.ts +0 -1
- package/dist/hooks/useMainnet.d.ts +0 -4
- package/dist/hooks/useMainnetEnsAvatar.d.ts +0 -1
- package/dist/hooks/useMainnetEnsName.d.ts +0 -1
- package/dist/hooks/useMesh.d.ts +0 -25
- package/dist/hooks/useSymbolRefresh.d.ts +0 -7
- package/dist/hooks/useWindowSize.d.ts +0 -4
- package/dist/index.d.ts +0 -19
- package/dist/locales/index.d.ts +0 -3
- package/dist/themes/baseTheme.d.ts +0 -25
- package/dist/themes/darkTheme.d.ts +0 -65
- package/dist/themes/lightTheme.d.ts +0 -65
- package/dist/transactions/TransactionStoreContext.d.ts +0 -151
- package/dist/transactions/transactionStore.d.ts +0 -21
- package/dist/transactions/useAddRecentTransaction.d.ts +0 -2
- package/dist/transactions/useClearRecentTransactions.d.ts +0 -1
- package/dist/transactions/useRecentTransactions.d.ts +0 -2
- package/dist/types.d.ts +0 -4
- package/dist/utils/browsers.d.ts +0 -13
- package/dist/utils/chainToExplorerUrl.d.ts +0 -2
- package/dist/utils/checkout.d.ts +0 -94
- package/dist/utils/colors.d.ts +0 -3
- package/dist/utils/emailandPhoneValidator.d.ts +0 -5
- package/dist/utils/flatten.d.ts +0 -1
- package/dist/utils/formatNumber.d.ts +0 -53
- package/dist/utils/formatTimestamp.d.ts +0 -1
- package/dist/utils/funwallet.d.ts +0 -1
- package/dist/utils/getWalletConnectUri.d.ts +0 -2
- package/dist/utils/groupBy.d.ts +0 -1
- package/dist/utils/indexBy.d.ts +0 -1
- package/dist/utils/isMobile.d.ts +0 -5
- package/dist/utils/isNotNullish.d.ts +0 -1
- package/dist/utils/locale.d.ts +0 -1
- package/dist/utils/mesh.d.ts +0 -53
- package/dist/utils/miniAbi/balanceOf.d.ts +0 -16
- package/dist/utils/moonpay.d.ts +0 -1
- package/dist/utils/omitUndefinedValues.d.ts +0 -1
- package/dist/utils/platforms.d.ts +0 -10
- package/dist/wallets/Wallet.d.ts +0 -86
- package/dist/wallets/connectorsForWallets.d.ts +0 -2
- package/dist/wallets/downloadUrls.d.ts +0 -4
- package/dist/wallets/getDefaultWallets.d.ts +0 -11
- package/dist/wallets/getInjectedConnector.d.ts +0 -10
- package/dist/wallets/getWalletConnectConnector.d.ts +0 -26
- package/dist/wallets/recentWalletIds.d.ts +0 -2
- package/dist/wallets/useWalletConnectors.d.ts +0 -13
- package/dist/wallets/walletConnectors/@funkitConnectWallet/funkitConnectWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/argentWallet/argentWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.d.ts +0 -18
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.d.ts +0 -39
- package/dist/wallets/walletConnectors/bitskiWallet/bitskiWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/braveWallet/braveWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/chunk-2T3BP5YM.js +0 -71
- package/dist/wallets/walletConnectors/chunk-3JTRMKJN.js +0 -71
- package/dist/wallets/walletConnectors/chunk-4ACOCJJZ.js +0 -54
- package/dist/wallets/walletConnectors/chunk-4AGSKVK4.js +0 -105
- package/dist/wallets/walletConnectors/chunk-4VG2VEG2.js +0 -114
- package/dist/wallets/walletConnectors/chunk-6GAD4OSN.js +0 -102
- package/dist/wallets/walletConnectors/chunk-BZWTTESU.js +0 -110
- package/dist/wallets/walletConnectors/chunk-DINSZSEC.js +0 -71
- package/dist/wallets/walletConnectors/chunk-DTCZLIMY.js +0 -112
- package/dist/wallets/walletConnectors/chunk-LU3HYLHT.js +0 -117
- package/dist/wallets/walletConnectors/chunk-MPVMJW2X.js +0 -113
- package/dist/wallets/walletConnectors/chunk-RAKDFYVF.js +0 -81
- package/dist/wallets/walletConnectors/chunk-TTTMI2Z2.js +0 -84
- package/dist/wallets/walletConnectors/chunk-UM7QXLQE.js +0 -226
- package/dist/wallets/walletConnectors/chunk-Z47L7SO3.js +0 -52
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.d.ts +0 -15
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.d.ts +0 -22
- package/dist/wallets/walletConnectors/coinbaseWallet/coinbaseWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.d.ts +0 -24
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/desigWallet/desigWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/enkryptWallet/enkryptWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.d.ts +0 -11
- package/dist/wallets/walletConnectors/frameWallet/frameWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.d.ts +0 -22
- package/dist/wallets/walletConnectors/imTokenWallet/imTokenWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/index.d.ts +0 -41
- package/dist/wallets/walletConnectors/injectedWallet/injectedWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.d.ts +0 -17
- package/dist/wallets/walletConnectors/mewWallet/mewWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.d.ts +0 -17
- package/dist/wallets/walletConnectors/omniWallet/omniWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/oneKeyWallet/oneKeyWallet.d.ts +0 -11
- package/dist/wallets/walletConnectors/phantomWallet/phantomWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/rabbyWallet/rabbyWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.d.ts +0 -17
- package/dist/wallets/walletConnectors/safeWallet/safeWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/safeheronWallet/safeheronWallet.d.ts +0 -12
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.d.ts +0 -22
- package/dist/wallets/walletConnectors/subWallet/subWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/tahoWallet/tahoWallet.d.ts +0 -12
- package/dist/wallets/walletConnectors/talismanWallet/talismanWallet.d.ts +0 -12
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.d.ts +0 -17
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.d.ts +0 -22
- package/dist/wallets/walletConnectors/uniswapWallet/uniswapWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/walletConnectWallet/walletConnectWallet.d.ts +0 -16
- package/dist/wallets/walletConnectors/xdefiWallet/xdefiWallet.d.ts +0 -12
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.d.ts +0 -7
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.d.ts +0 -17
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as styles from './touchableStyles.css';
|
|
2
|
-
interface TouchableStylesOptions {
|
|
3
|
-
hover?: keyof typeof styles.hover;
|
|
4
|
-
active: keyof typeof styles.active;
|
|
5
|
-
}
|
|
6
|
-
export declare function touchableStyles({ active, hover }: TouchableStylesOptions): (string | undefined)[];
|
|
7
|
-
export declare function touchablePrimaryStyles({ active, hover, }: TouchableStylesOptions): (string | undefined)[];
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useChainId(): number | null;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare function useCheckoutAccountBalanceTransfer(checkoutId: string | null): {
|
|
2
|
-
generateCheckoutTransferOpItems: (toAddress: string, tokenAmount: number | string) => Promise<{
|
|
3
|
-
rFunWallet: import("@funkit/core").FunWallet;
|
|
4
|
-
rFunWalletAuth: import("@funkit/core").Auth;
|
|
5
|
-
transferOp: import("@funkit/core").Operation;
|
|
6
|
-
envConfig: {
|
|
7
|
-
chain: string;
|
|
8
|
-
gasSponsor: {
|
|
9
|
-
useCheckoutSponsor: boolean;
|
|
10
|
-
sponsorAddress: any;
|
|
11
|
-
token?: string | undefined;
|
|
12
|
-
usePermit?: boolean | undefined;
|
|
13
|
-
};
|
|
14
|
-
bypassInit: boolean;
|
|
15
|
-
apiKey?: string | undefined;
|
|
16
|
-
fee?: {
|
|
17
|
-
token?: string | undefined;
|
|
18
|
-
amount?: number | undefined;
|
|
19
|
-
gasPercent?: number | undefined;
|
|
20
|
-
recipient: `0x${string}`;
|
|
21
|
-
} | undefined;
|
|
22
|
-
skipDBAction?: boolean | undefined;
|
|
23
|
-
nonce?: bigint | undefined;
|
|
24
|
-
};
|
|
25
|
-
} | {
|
|
26
|
-
rFunWallet: null;
|
|
27
|
-
rFunWalletAuth: null;
|
|
28
|
-
transferOp: null;
|
|
29
|
-
envConfig: null;
|
|
30
|
-
}>;
|
|
31
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CheckoutState } from '@funkit/core';
|
|
2
|
-
export declare function useCheckoutStateBooleans(checkoutState: CheckoutState): {
|
|
3
|
-
isProcessing: boolean;
|
|
4
|
-
isCompleted: boolean;
|
|
5
|
-
isError: boolean;
|
|
6
|
-
isExpired: boolean;
|
|
7
|
-
isFailed: boolean;
|
|
8
|
-
isTerminal: boolean;
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useDebouncedCallback: (callback: (p?: any) => void, delay?: number) => (...args: any) => void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Handles the starting and stopping of checkout history listeners based on the calling component's mount/unmount status
|
|
3
|
-
*/
|
|
4
|
-
export declare function useCheckoutHistoryListener(activate?: boolean): void;
|
|
5
|
-
/**
|
|
6
|
-
* Handles the starting and stopping of asset listeners based on the calling component's mount/unmount status
|
|
7
|
-
*/
|
|
8
|
-
export declare function useFunWalletAssetsListener(activate?: boolean): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useIsMounted: () => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useMainnetEnsAvatar(name: string | null | undefined): QueryObserverResult<TData, TError>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useMainnetEnsName(address: string | undefined): QueryObserverResult<TData, TError>;
|
package/dist/hooks/useMesh.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FunSelectOption } from '../components/FunSelect/FunSelect';
|
|
3
|
-
import { MeshExchanges } from '../utils/mesh';
|
|
4
|
-
export declare const useMeshExchanges: ({ fullInfo, }: {
|
|
5
|
-
fullInfo: boolean;
|
|
6
|
-
}) => {
|
|
7
|
-
options: FunSelectOption[];
|
|
8
|
-
optionsMap: {
|
|
9
|
-
[x: string]: React.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Fetches mesh-related network information based on the active chain user is logged in on, given an exchange
|
|
14
|
-
* @param exchange The mesh exchange user is currently connected with
|
|
15
|
-
*/
|
|
16
|
-
export declare const useMeshActiveNetworkInfo: (exchange: MeshExchanges) => {
|
|
17
|
-
meshNetworkInfo: {
|
|
18
|
-
meshSupportedTokens: string[];
|
|
19
|
-
meshNetworkId: string | null;
|
|
20
|
-
};
|
|
21
|
-
fetchInfo: (chainId?: string) => Promise<{
|
|
22
|
-
meshSupportedTokens: any;
|
|
23
|
-
meshNetworkId: any;
|
|
24
|
-
}>;
|
|
25
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides a unique identifier (a symbol in this case) that can be refreshed when necessary.
|
|
3
|
-
* Components using this hook will receive the initial symbol value and the refresh function to trigger a change in the symbol.
|
|
4
|
-
* This can be helpful in scenarios where you want to force a re-render or update.
|
|
5
|
-
*/
|
|
6
|
-
export declare function useSymbolRefresh(): [symbol: symbol, refresh: () => void];
|
|
7
|
-
export default useSymbolRefresh;
|
package/dist/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export { __private__ } from './__private__';
|
|
2
|
-
export * from './components';
|
|
3
|
-
export type { DisclaimerComponent } from './components/FunkitProvider/AppContext';
|
|
4
|
-
export type { AuthenticationConfig, AuthenticationStatus, } from './components/FunkitProvider/AuthenticationContext';
|
|
5
|
-
export { createAuthenticationAdapter, RainbowKitAuthenticationProvider, } from './components/FunkitProvider/AuthenticationContext';
|
|
6
|
-
export type { AvatarComponent } from './components/FunkitProvider/AvatarContext';
|
|
7
|
-
export type { Theme } from './components/FunkitProvider/FunkitProvider';
|
|
8
|
-
export { useAccountModal, useChainModal, useConnectModal, } from './components/FunkitProvider/ModalContext';
|
|
9
|
-
export type { Chain } from './components/FunkitProvider/RainbowKitChainContext';
|
|
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 { useAddRecentTransaction } from './transactions/useAddRecentTransaction';
|
|
16
|
-
export { connectorsForWallets } from './wallets/connectorsForWallets';
|
|
17
|
-
export { getDefaultWallets } from './wallets/getDefaultWallets';
|
|
18
|
-
export { getWalletConnectConnector } from './wallets/getWalletConnectConnector';
|
|
19
|
-
export type { Wallet, WalletList } from './wallets/Wallet';
|
package/dist/locales/index.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1,25 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,65 +0,0 @@
|
|
|
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
|
-
modalBackdrop: string;
|
|
26
|
-
modalBackground: string;
|
|
27
|
-
modalBorder: string;
|
|
28
|
-
modalText: string;
|
|
29
|
-
modalTextDim: string;
|
|
30
|
-
modalTextSecondary: string;
|
|
31
|
-
profileAction: string;
|
|
32
|
-
profileActionHover: string;
|
|
33
|
-
profileForeground: string;
|
|
34
|
-
selectedOptionBorder: string;
|
|
35
|
-
solidLine: string;
|
|
36
|
-
rightTranslucentLine: string;
|
|
37
|
-
leftTranslucentLine: string;
|
|
38
|
-
standby: string;
|
|
39
|
-
loadingBase: string;
|
|
40
|
-
loadingAccent: string;
|
|
41
|
-
};
|
|
42
|
-
shadows: {
|
|
43
|
-
connectButton: string;
|
|
44
|
-
dialog: string;
|
|
45
|
-
profileDetailsAction: string;
|
|
46
|
-
selectedOption: string;
|
|
47
|
-
selectedWallet: string;
|
|
48
|
-
walletLogo: string;
|
|
49
|
-
};
|
|
50
|
-
fonts: {
|
|
51
|
-
body: string;
|
|
52
|
-
};
|
|
53
|
-
radii: {
|
|
54
|
-
actionButton: string;
|
|
55
|
-
connectButton: string;
|
|
56
|
-
menuButton: string;
|
|
57
|
-
modal: string;
|
|
58
|
-
modalMobile: string;
|
|
59
|
-
};
|
|
60
|
-
blurs: {
|
|
61
|
-
modalOverlay: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
accentColors: Record<AccentColorPreset, AccentColor>;
|
|
65
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
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
|
-
modalBackdrop: string;
|
|
26
|
-
modalBackground: string;
|
|
27
|
-
modalBorder: string;
|
|
28
|
-
modalText: string;
|
|
29
|
-
modalTextDim: string;
|
|
30
|
-
modalTextSecondary: string;
|
|
31
|
-
profileAction: string;
|
|
32
|
-
profileActionHover: string;
|
|
33
|
-
profileForeground: string;
|
|
34
|
-
selectedOptionBorder: string;
|
|
35
|
-
solidLine: string;
|
|
36
|
-
rightTranslucentLine: string;
|
|
37
|
-
leftTranslucentLine: string;
|
|
38
|
-
standby: string;
|
|
39
|
-
loadingBase: string;
|
|
40
|
-
loadingAccent: string;
|
|
41
|
-
};
|
|
42
|
-
shadows: {
|
|
43
|
-
connectButton: string;
|
|
44
|
-
dialog: string;
|
|
45
|
-
profileDetailsAction: string;
|
|
46
|
-
selectedOption: string;
|
|
47
|
-
selectedWallet: string;
|
|
48
|
-
walletLogo: string;
|
|
49
|
-
};
|
|
50
|
-
fonts: {
|
|
51
|
-
body: string;
|
|
52
|
-
};
|
|
53
|
-
radii: {
|
|
54
|
-
actionButton: string;
|
|
55
|
-
connectButton: string;
|
|
56
|
-
menuButton: string;
|
|
57
|
-
modal: string;
|
|
58
|
-
modalMobile: string;
|
|
59
|
-
};
|
|
60
|
-
blurs: {
|
|
61
|
-
modalOverlay: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
accentColors: Record<AccentColorPreset, AccentColor>;
|
|
65
|
-
};
|
|
@@ -1,151 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useClearRecentTransactions(): () => void;
|
package/dist/types.d.ts
DELETED
package/dist/utils/browsers.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
package/dist/utils/checkout.d.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { CheckoutHistoryItem, CheckoutState, FunWallet } 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
|
-
/**
|
|
6
|
-
* Validates the checkout configuration.
|
|
7
|
-
* @param config - The checkout configuration to validate.
|
|
8
|
-
* @returns An object indicating whether the configuration is valid and a message if it is not.
|
|
9
|
-
*/
|
|
10
|
-
export declare function validateCheckoutConfig(config: FunkitCheckoutConfig): {
|
|
11
|
-
isValid: boolean;
|
|
12
|
-
message: string;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Checks whether user has sufficient targetAsset + targetAssetAmount in their funwallet
|
|
16
|
-
*/
|
|
17
|
-
export declare const testAutoExecutionDuringCheckout: (config: FunkitCheckoutConfig, wallet: FunWallet) => Promise<{
|
|
18
|
-
result: boolean;
|
|
19
|
-
tokenTicker: string;
|
|
20
|
-
} | {
|
|
21
|
-
result: boolean;
|
|
22
|
-
tokenTicker: null;
|
|
23
|
-
}>;
|
|
24
|
-
export declare function getTokenAddress(tokenTicker: string, chainId: string): Promise<`0x${string}`>;
|
|
25
|
-
export declare function getFunkitEnvForDirectExecution({ chainId, }: {
|
|
26
|
-
chainId: string;
|
|
27
|
-
}): {
|
|
28
|
-
chain: string;
|
|
29
|
-
gasSponsor: {
|
|
30
|
-
sponsorAddress?: `0x${string}` | undefined;
|
|
31
|
-
token?: string | undefined;
|
|
32
|
-
usePermit?: boolean | undefined;
|
|
33
|
-
useCheckoutSponsor?: boolean | undefined;
|
|
34
|
-
};
|
|
35
|
-
apiKey?: string | undefined;
|
|
36
|
-
fee?: {
|
|
37
|
-
token?: string | undefined;
|
|
38
|
-
amount?: number | undefined;
|
|
39
|
-
gasPercent?: number | undefined;
|
|
40
|
-
recipient: `0x${string}`;
|
|
41
|
-
} | undefined;
|
|
42
|
-
skipDBAction?: boolean | undefined;
|
|
43
|
-
nonce?: bigint | undefined;
|
|
44
|
-
bypassInit?: boolean | undefined;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Generates an env config for checkout estimation
|
|
48
|
-
* So that batch operation creation will not fail even if FW has insufficient funds to pass the estimation.
|
|
49
|
-
*/
|
|
50
|
-
export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalletInit, }: {
|
|
51
|
-
chainId: string;
|
|
52
|
-
bypassWalletInit: boolean;
|
|
53
|
-
}): {
|
|
54
|
-
chain: string;
|
|
55
|
-
gasSponsor: {
|
|
56
|
-
useCheckoutSponsor: boolean;
|
|
57
|
-
sponsorAddress: any;
|
|
58
|
-
token?: string | undefined;
|
|
59
|
-
usePermit?: boolean | undefined;
|
|
60
|
-
};
|
|
61
|
-
bypassInit: boolean;
|
|
62
|
-
apiKey?: string | undefined;
|
|
63
|
-
fee?: {
|
|
64
|
-
token?: string | undefined;
|
|
65
|
-
amount?: number | undefined;
|
|
66
|
-
gasPercent?: number | undefined;
|
|
67
|
-
recipient: `0x${string}`;
|
|
68
|
-
} | undefined;
|
|
69
|
-
skipDBAction?: boolean | undefined;
|
|
70
|
-
nonce?: bigint | undefined;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Decorates a list of token strings with their chainId-specific tokenAddress
|
|
74
|
-
* @param tokenList List of token strings e.g. ['ETH', 'MATIC', ...]
|
|
75
|
-
* @param chainId The chain identifier e.g. '1' for mainnet, '137' for polygon
|
|
76
|
-
* @returns List of tokenItem objects
|
|
77
|
-
*/
|
|
78
|
-
export declare function decorateTokenList(tokenList: string[], chainId: string): Promise<{
|
|
79
|
-
symbol: string;
|
|
80
|
-
tokenAddress: null | Hex;
|
|
81
|
-
tokenUnitPriceUsd: null | number;
|
|
82
|
-
}[]>;
|
|
83
|
-
export interface CheckoutHistoryDepositAddrMap {
|
|
84
|
-
[depositAddr: string]: CheckoutHistoryItem;
|
|
85
|
-
}
|
|
86
|
-
export interface CheckoutHistoryStateMap {
|
|
87
|
-
[checkoutState: string]: CheckoutHistoryItem[];
|
|
88
|
-
}
|
|
89
|
-
export declare function categorizeCheckoutHistories(checkoutHistoryList: CheckoutHistoryItem[]): {
|
|
90
|
-
stateMap: CheckoutHistoryStateMap;
|
|
91
|
-
depositAddrMap: CheckoutHistoryDepositAddrMap;
|
|
92
|
-
};
|
|
93
|
-
export declare function getCheckoutStateStepNumber(state: CheckoutState): 0 | 1 | 3 | 2;
|
|
94
|
-
export declare function formatTokenAmountForMoonpay(amount: number): string;
|
package/dist/utils/colors.d.ts
DELETED