@privy-io/react-auth 1.98.0 → 2.0.0-beta-20241218220832
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/cjs/abstract-smart-wallets.js +1 -1
- package/dist/cjs/actions/importWallet.js +1 -1
- package/dist/cjs/auth-flows/farcaster.js +1 -1
- package/dist/cjs/auth-flows/telegram.js +1 -1
- package/dist/cjs/client/user.js +1 -1
- package/dist/cjs/client.js +1 -1
- package/dist/cjs/components/Captcha.js +1 -1
- package/dist/cjs/components/ConnectEmailForm.js +1 -1
- package/dist/cjs/components/LoginModal.js +1 -1
- package/dist/cjs/components/QrCode.js +2 -2
- package/dist/cjs/components/UpdateEmailForm.js +1 -1
- package/dist/cjs/components/embedded-wallets/PriceDisplay.js +3 -3
- package/dist/cjs/components/embedded-wallets/SolanaTransactionDetails.js +1 -1
- package/dist/cjs/components/embedded-wallets/TransactionDetails.js +2 -2
- package/dist/cjs/components/embedded-wallets/TransactionDetailsWrapper.js +1 -1
- package/dist/cjs/components/embedded-wallets/TransactionTotal.js +1 -1
- package/dist/cjs/components/embedded-wallets/WalletLink.js +1 -1
- package/dist/cjs/components/embedded-wallets/index.js +1 -1
- package/dist/cjs/components/external-wallets/InjectedWalletIcon.js +1 -1
- package/dist/cjs/components/ui/wallet/Address.js +1 -1
- package/dist/cjs/components/ui/wallet/WalletInfoCard.js +1 -1
- package/dist/cjs/components/ui/wallet/WalletInfoCard.story.js +1 -1
- package/dist/cjs/config.js +1 -1
- package/dist/cjs/configuration/context.js +1 -1
- package/dist/cjs/connectors/coinbase.js +1 -1
- package/dist/cjs/connectors/embedded.js +1 -1
- package/dist/cjs/connectors/embeddedProvider.js +1 -1
- package/dist/cjs/connectors/errors.js +1 -1
- package/dist/cjs/connectors/ethereum/EthereumNullConnector.js +1 -1
- package/dist/cjs/connectors/ethereum/index.js +1 -1
- package/dist/cjs/connectors/index.js +1 -1
- package/dist/cjs/connectors/injected.js +1 -1
- package/dist/cjs/connectors/metamask.js +1 -1
- package/dist/cjs/connectors/phantom-solana.js +1 -1
- package/dist/cjs/connectors/phantom.js +1 -1
- package/dist/cjs/connectors/privyProxyProvider.js +1 -1
- package/dist/cjs/connectors/solana/SolanaNullConnector.js +1 -1
- package/dist/cjs/connectors/solana/index.js +1 -1
- package/dist/cjs/connectors/solana/toSolanaWalletConnectors.js +1 -1
- package/dist/cjs/connectors/walletconnect-registry.js +1 -1
- package/dist/cjs/connectors/walletconnect-v2.js +1 -1
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/embedded-wallets/EmbeddedWalletIframe.js +1 -1
- package/dist/cjs/embedded-wallets/delegated-actions.js +1 -1
- package/dist/cjs/embedded-wallets/rpc/index.js +1 -1
- package/dist/cjs/embedded-wallets/solana/provider.js +1 -1
- package/dist/cjs/errors-42YzokZM.js +1 -0
- package/dist/cjs/hooks/captcha-context.js +1 -1
- package/dist/cjs/hooks/events-context.js +1 -1
- package/dist/cjs/hooks/internal-context.js +1 -1
- package/dist/cjs/hooks/privy-context.js +1 -1
- package/dist/cjs/hooks/privy-provider.js +1 -1
- package/dist/cjs/hooks/smart-wallets-provider.js +1 -1
- package/dist/cjs/hooks/useEmbeddedWalletCreate.js +1 -1
- package/dist/cjs/hooks/useFormattedBalances.js +1 -1
- package/dist/cjs/hooks/useImportWallet.js +1 -1
- package/dist/cjs/hooks/useLinkWithSiwe.js +1 -1
- package/dist/cjs/hooks/useLoginWithEmail.js +1 -1
- package/dist/cjs/hooks/useLoginWithOAuth.js +1 -1
- package/dist/cjs/hooks/useLoginWithPasskey.js +1 -1
- package/dist/cjs/hooks/useLoginWithSms.js +1 -1
- package/dist/cjs/hooks/usePrivy.js +1 -1
- package/dist/cjs/hooks/useSolanaWallets.js +1 -1
- package/dist/cjs/hooks/useWalletBalance.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/lib/abstract-smart-wallets.js +1 -1
- package/dist/cjs/lib/erc20/actions/getErc20TokenInfo.js +1 -1
- package/dist/cjs/lib/ethers.js +1 -1
- package/dist/cjs/lib/funding/prepareFundingModalData.js +1 -1
- package/dist/cjs/lib/smart-wallets-shared.js +1 -1
- package/dist/cjs/lib/smart-wallets.js +1 -1
- package/dist/cjs/lib/viem/prepareTransactionRequest.js +1 -0
- package/dist/cjs/lib/viem/toViemTransactionSerializable.js +1 -0
- package/dist/cjs/lib/wallets/actions/getBalanceForChains.js +1 -1
- package/dist/cjs/lib/wallets/actions/getErc20Balance.js +1 -1
- package/dist/cjs/privy-components/user-pill/Account.js +1 -1
- package/dist/cjs/privy-components/user-pill/PrimaryAccount.js +1 -1
- package/dist/cjs/privy-components/user-pill/PrimaryWallet.js +1 -1
- package/dist/cjs/privy-components/user-pill/UserMenu.js +1 -1
- package/dist/cjs/privy-components/user-pill/UserPill.js +2 -2
- package/dist/cjs/privy-components/user-pill/UserPill.test.js +1 -1
- package/dist/cjs/privy-components/user-pill/screens/AccountScreen.js +1 -1
- package/dist/cjs/privy-components/user-pill/screens/LinkedAccountsScreen.js +1 -1
- package/dist/cjs/privy-components/user-pill/screens/MenuScreen.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/ActiveWalletCard.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/ConnectWalletView.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/SelectActiveWalletView.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/WalletCardView.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/WalletsDialog.js +1 -1
- package/dist/cjs/privy-components/wallets-pill/useActiveWallet.js +1 -1
- package/dist/cjs/privy-provider-El73p7ez.js +2 -0
- package/dist/cjs/screens/AccountTransferScreen/EmbeddedWalletInfoView.js +1 -1
- package/dist/cjs/screens/AccountTransferScreen/LinkConflictScreen.js +1 -1
- package/dist/cjs/screens/AffirmativeConsentScreen.js +1 -1
- package/dist/cjs/screens/AwaitingPasswordlessCodeScreen.js +1 -1
- package/dist/cjs/screens/CaptchaScreen.js +1 -1
- package/dist/cjs/screens/ConnectOnlyAuthenticatedScreen.js +1 -1
- package/dist/cjs/screens/ConnectOnlyLandingScreen.js +1 -1
- package/dist/cjs/screens/ConnectOnlyStatusScreen.js +1 -1
- package/dist/cjs/screens/ConnectionStatusScreen.js +2 -2
- package/dist/cjs/screens/CrossAppAuthScreen.js +1 -1
- package/dist/cjs/screens/DelegatedActionsConsentScreen.js +1 -1
- package/dist/cjs/screens/EmbeddedWalletConnectingScreen.js +1 -1
- package/dist/cjs/screens/EmbeddedWalletCreatedScreen.js +1 -1
- package/dist/cjs/screens/EmbeddedWalletKeyExportScreen.js +2 -2
- package/dist/cjs/screens/EmbeddedWalletOnAccountCreateScreen.js +1 -1
- package/dist/cjs/screens/EmbeddedWalletPasswordUpdateScreen.js +1 -1
- package/dist/cjs/screens/ErrorScreen.js +1 -1
- package/dist/cjs/screens/FarcasterConnectStatusScreen.js +2 -2
- package/dist/cjs/screens/FarcasterSignerStatusScreen.js +2 -2
- package/dist/cjs/screens/Funding/AwaitingEvmToSolBridgingScreen.js +1 -1
- package/dist/cjs/screens/Funding/AwaitingExternalSolanaTransferScreen.js +2 -2
- package/dist/cjs/screens/Funding/AwaitingExternalTransferScreen.js +1 -1
- package/dist/cjs/screens/Funding/AwaitingSolToEvmBridgingScreen.js +1 -1
- package/dist/cjs/screens/Funding/BridgeNetworkSelectionView.js +1 -1
- package/dist/cjs/screens/Funding/FundingEditAmountScreen.js +1 -1
- package/dist/cjs/screens/Funding/FundingMethodSelectionScreen.js +1 -1
- package/dist/cjs/screens/Funding/ManualTransferScreen.js +1 -1
- package/dist/cjs/screens/Funding/TransferFromWalletScreen.js +1 -1
- package/dist/cjs/screens/Funding/TransferOrBridgeLoadingScreen.js +1 -1
- package/dist/cjs/screens/Funding/styles.js +1 -1
- package/dist/cjs/screens/LandingScreen/ConnectOrCreateScreen.js +1 -1
- package/dist/cjs/screens/LandingScreen/CustomLandingScreenView.js +1 -1
- package/dist/cjs/screens/LandingScreen/EmailButton.js +1 -1
- package/dist/cjs/screens/LandingScreen/FarcasterButton.js +1 -1
- package/dist/cjs/screens/LandingScreen/LandingScreen.js +1 -1
- package/dist/cjs/screens/LandingScreen/LandingScreenView.js +1 -1
- package/dist/cjs/screens/LandingScreen/PasskeyLink.js +1 -1
- package/dist/cjs/screens/LandingScreen/SmsButton.js +1 -1
- package/dist/cjs/screens/LandingScreen/SocialButton.js +1 -1
- package/dist/cjs/screens/LandingScreen/TelegramButton.js +1 -1
- package/dist/cjs/screens/LinkEmailScreen.js +1 -1
- package/dist/cjs/screens/LinkWalletScreen.js +1 -1
- package/dist/cjs/screens/MfaScreens/EnrollPasskey.js +1 -1
- package/dist/cjs/screens/MfaScreens/EnrollSms.js +1 -1
- package/dist/cjs/screens/MfaScreens/EnrollTotp.js +1 -1
- package/dist/cjs/screens/MfaScreens/MfaEnrollmentFlowScreen.js +1 -1
- package/dist/cjs/screens/MfaScreens/MfaVerifyFlowScreen.js +1 -1
- package/dist/cjs/screens/MfaScreens/VerifyWithPasskey.js +1 -1
- package/dist/cjs/screens/OAuthStatusScreen.js +1 -1
- package/dist/cjs/screens/Recovery/PasswordRecoveryScreen.js +1 -1
- package/dist/cjs/screens/Recovery/RecoveryPasswordCreateScreen.js +1 -1
- package/dist/cjs/screens/Recovery/RecoverySelectionScreen.js +1 -1
- package/dist/cjs/screens/Recovery/SetAutomaticRecoveryScreen.js +1 -1
- package/dist/cjs/screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.js +1 -1
- package/dist/cjs/screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/SendTransactionScreen.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/SendTransactionScreenView.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/TransactionDetail.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/TransactionErrorView.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/TransactionReceiptView.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/index.js +1 -1
- package/dist/cjs/screens/SendTransactionScreen/usePrepareTransaction.js +1 -1
- package/dist/cjs/screens/SignRequestScreen.js +1 -1
- package/dist/cjs/screens/TelegramAuthScreen.js +1 -1
- package/dist/cjs/screens/UpdateEmailScreen.js +1 -1
- package/dist/cjs/session.js +1 -1
- package/dist/cjs/smart-wallets.js +1 -1
- package/dist/cjs/solana.js +1 -1
- package/dist/cjs/svg/qr-codes.js +1 -1
- package/dist/cjs/ui.js +1 -1
- package/dist/cjs/utils/eth/getPublicClient.js +1 -0
- package/dist/cjs/utils/index.js +1 -1
- package/dist/dts/index.d.mts +703 -101
- package/dist/dts/index.d.ts +703 -101
- package/dist/dts/solana.d.mts +2 -4
- package/dist/dts/solana.d.ts +2 -4
- package/dist/dts/{types-DLYwr0wq.d.mts → types-BlSTYBTj.d.mts} +5 -45
- package/dist/dts/{types-DLYwr0wq.d.ts → types-BlSTYBTj.d.ts} +5 -45
- package/dist/dts/ui.d.mts +1 -3
- package/dist/dts/ui.d.ts +1 -3
- package/dist/dts/{useFundSolanaWallet-DNaRhc-b.d.mts → useFundSolanaWallet-BSJVk8QT.d.mts} +7 -15
- package/dist/dts/{useFundSolanaWallet-DNaRhc-b.d.ts → useFundSolanaWallet-BSJVk8QT.d.ts} +7 -15
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/actions/importWallet.mjs +1 -1
- package/dist/esm/auth-flows/farcaster.mjs +1 -1
- package/dist/esm/auth-flows/telegram.mjs +1 -1
- package/dist/esm/client/user.mjs +1 -1
- package/dist/esm/client.mjs +1 -1
- package/dist/esm/components/Captcha.mjs +1 -1
- package/dist/esm/components/ConnectEmailForm.mjs +1 -1
- package/dist/esm/components/LoginModal.mjs +1 -1
- package/dist/esm/components/QrCode.mjs +2 -2
- package/dist/esm/components/UpdateEmailForm.mjs +1 -1
- package/dist/esm/components/embedded-wallets/PriceDisplay.mjs +3 -3
- package/dist/esm/components/embedded-wallets/SolanaTransactionDetails.mjs +1 -1
- package/dist/esm/components/embedded-wallets/TransactionDetails.mjs +2 -2
- package/dist/esm/components/embedded-wallets/TransactionDetailsWrapper.mjs +1 -1
- package/dist/esm/components/embedded-wallets/TransactionTotal.mjs +1 -1
- package/dist/esm/components/embedded-wallets/WalletLink.mjs +1 -1
- package/dist/esm/components/embedded-wallets/index.mjs +1 -1
- package/dist/esm/components/external-wallets/InjectedWalletIcon.mjs +1 -1
- package/dist/esm/components/ui/wallet/Address.mjs +1 -1
- package/dist/esm/components/ui/wallet/WalletInfoCard.mjs +1 -1
- package/dist/esm/components/ui/wallet/WalletInfoCard.story.mjs +1 -1
- package/dist/esm/config.mjs +1 -1
- package/dist/esm/configuration/context.mjs +1 -1
- package/dist/esm/connectors/coinbase.mjs +1 -1
- package/dist/esm/connectors/embedded.mjs +1 -1
- package/dist/esm/connectors/embeddedProvider.mjs +1 -1
- package/dist/esm/connectors/errors.mjs +1 -1
- package/dist/esm/connectors/ethereum/EthereumNullConnector.mjs +1 -1
- package/dist/esm/connectors/ethereum/index.mjs +1 -1
- package/dist/esm/connectors/index.mjs +1 -1
- package/dist/esm/connectors/injected.mjs +1 -1
- package/dist/esm/connectors/metamask.mjs +1 -1
- package/dist/esm/connectors/phantom-solana.mjs +1 -1
- package/dist/esm/connectors/phantom.mjs +1 -1
- package/dist/esm/connectors/privyProxyProvider.mjs +1 -1
- package/dist/esm/connectors/solana/SolanaNullConnector.mjs +1 -1
- package/dist/esm/connectors/solana/index.mjs +1 -1
- package/dist/esm/connectors/solana/toSolanaWalletConnectors.mjs +1 -1
- package/dist/esm/connectors/walletconnect-registry.mjs +1 -1
- package/dist/esm/connectors/walletconnect-v2.mjs +1 -1
- package/dist/esm/constants.mjs +1 -1
- package/dist/esm/embedded-wallets/EmbeddedWalletIframe.mjs +1 -1
- package/dist/esm/embedded-wallets/delegated-actions.mjs +1 -1
- package/dist/esm/embedded-wallets/rpc/index.mjs +1 -1
- package/dist/esm/embedded-wallets/solana/provider.mjs +1 -1
- package/dist/esm/errors-l5CH-t4_.mjs +1 -0
- package/dist/esm/hooks/captcha-context.mjs +1 -1
- package/dist/esm/hooks/events-context.mjs +1 -1
- package/dist/esm/hooks/internal-context.mjs +1 -1
- package/dist/esm/hooks/privy-context.mjs +1 -1
- package/dist/esm/hooks/privy-provider.mjs +1 -1
- package/dist/esm/hooks/smart-wallets-provider.mjs +1 -1
- package/dist/esm/hooks/useEmbeddedWalletCreate.mjs +1 -1
- package/dist/esm/hooks/useFormattedBalances.mjs +1 -1
- package/dist/esm/hooks/useImportWallet.mjs +1 -1
- package/dist/esm/hooks/useLinkWithSiwe.mjs +1 -1
- package/dist/esm/hooks/useLoginWithEmail.mjs +1 -1
- package/dist/esm/hooks/useLoginWithOAuth.mjs +1 -1
- package/dist/esm/hooks/useLoginWithPasskey.mjs +1 -1
- package/dist/esm/hooks/useLoginWithSms.mjs +1 -1
- package/dist/esm/hooks/usePrivy.mjs +1 -1
- package/dist/esm/hooks/useSolanaWallets.mjs +1 -1
- package/dist/esm/hooks/useWalletBalance.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/lib/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/lib/erc20/actions/getErc20TokenInfo.mjs +1 -1
- package/dist/esm/lib/ethers.mjs +1 -1
- package/dist/esm/lib/funding/prepareFundingModalData.mjs +1 -1
- package/dist/esm/lib/smart-wallets-shared.mjs +1 -1
- package/dist/esm/lib/smart-wallets.mjs +1 -1
- package/dist/esm/lib/viem/prepareTransactionRequest.mjs +1 -0
- package/dist/esm/lib/viem/toViemTransactionSerializable.mjs +1 -0
- package/dist/esm/lib/wallets/actions/getBalanceForChains.mjs +1 -1
- package/dist/esm/lib/wallets/actions/getErc20Balance.mjs +1 -1
- package/dist/esm/privy-components/user-pill/Account.mjs +1 -1
- package/dist/esm/privy-components/user-pill/PrimaryAccount.mjs +1 -1
- package/dist/esm/privy-components/user-pill/PrimaryWallet.mjs +1 -1
- package/dist/esm/privy-components/user-pill/UserMenu.mjs +1 -1
- package/dist/esm/privy-components/user-pill/UserPill.mjs +2 -2
- package/dist/esm/privy-components/user-pill/UserPill.test.mjs +1 -1
- package/dist/esm/privy-components/user-pill/screens/AccountScreen.mjs +1 -1
- package/dist/esm/privy-components/user-pill/screens/LinkedAccountsScreen.mjs +1 -1
- package/dist/esm/privy-components/user-pill/screens/MenuScreen.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/ActiveWalletCard.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/ConnectWalletView.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/SelectActiveWalletView.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/WalletCardView.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/WalletsDialog.mjs +1 -1
- package/dist/esm/privy-components/wallets-pill/useActiveWallet.mjs +1 -1
- package/dist/esm/privy-provider-CMFBXAga.mjs +2 -0
- package/dist/esm/screens/AccountTransferScreen/EmbeddedWalletInfoView.mjs +1 -1
- package/dist/esm/screens/AccountTransferScreen/LinkConflictScreen.mjs +1 -1
- package/dist/esm/screens/AffirmativeConsentScreen.mjs +1 -1
- package/dist/esm/screens/AwaitingPasswordlessCodeScreen.mjs +1 -1
- package/dist/esm/screens/CaptchaScreen.mjs +1 -1
- package/dist/esm/screens/ConnectOnlyAuthenticatedScreen.mjs +1 -1
- package/dist/esm/screens/ConnectOnlyLandingScreen.mjs +1 -1
- package/dist/esm/screens/ConnectOnlyStatusScreen.mjs +1 -1
- package/dist/esm/screens/ConnectionStatusScreen.mjs +1 -1
- package/dist/esm/screens/CrossAppAuthScreen.mjs +1 -1
- package/dist/esm/screens/DelegatedActionsConsentScreen.mjs +1 -1
- package/dist/esm/screens/EmbeddedWalletConnectingScreen.mjs +1 -1
- package/dist/esm/screens/EmbeddedWalletCreatedScreen.mjs +1 -1
- package/dist/esm/screens/EmbeddedWalletKeyExportScreen.mjs +2 -2
- package/dist/esm/screens/EmbeddedWalletOnAccountCreateScreen.mjs +1 -1
- package/dist/esm/screens/EmbeddedWalletPasswordUpdateScreen.mjs +1 -1
- package/dist/esm/screens/ErrorScreen.mjs +1 -1
- package/dist/esm/screens/FarcasterConnectStatusScreen.mjs +2 -2
- package/dist/esm/screens/FarcasterSignerStatusScreen.mjs +2 -2
- package/dist/esm/screens/Funding/AwaitingEvmToSolBridgingScreen.mjs +1 -1
- package/dist/esm/screens/Funding/AwaitingExternalSolanaTransferScreen.mjs +2 -2
- package/dist/esm/screens/Funding/AwaitingExternalTransferScreen.mjs +2 -2
- package/dist/esm/screens/Funding/AwaitingSolToEvmBridgingScreen.mjs +1 -1
- package/dist/esm/screens/Funding/BridgeNetworkSelectionView.mjs +1 -1
- package/dist/esm/screens/Funding/FundingEditAmountScreen.mjs +1 -1
- package/dist/esm/screens/Funding/FundingMethodSelectionScreen.mjs +1 -1
- package/dist/esm/screens/Funding/ManualTransferScreen.mjs +1 -1
- package/dist/esm/screens/Funding/TransferFromWalletScreen.mjs +1 -1
- package/dist/esm/screens/Funding/TransferOrBridgeLoadingScreen.mjs +1 -1
- package/dist/esm/screens/Funding/styles.mjs +1 -1
- package/dist/esm/screens/LandingScreen/ConnectOrCreateScreen.mjs +1 -1
- package/dist/esm/screens/LandingScreen/CustomLandingScreenView.mjs +1 -1
- package/dist/esm/screens/LandingScreen/EmailButton.mjs +1 -1
- package/dist/esm/screens/LandingScreen/FarcasterButton.mjs +1 -1
- package/dist/esm/screens/LandingScreen/LandingScreen.mjs +1 -1
- package/dist/esm/screens/LandingScreen/LandingScreenView.mjs +1 -1
- package/dist/esm/screens/LandingScreen/PasskeyLink.mjs +1 -1
- package/dist/esm/screens/LandingScreen/SmsButton.mjs +1 -1
- package/dist/esm/screens/LandingScreen/SocialButton.mjs +1 -1
- package/dist/esm/screens/LandingScreen/TelegramButton.mjs +1 -1
- package/dist/esm/screens/LinkEmailScreen.mjs +1 -1
- package/dist/esm/screens/LinkWalletScreen.mjs +1 -1
- package/dist/esm/screens/MfaScreens/EnrollPasskey.mjs +1 -1
- package/dist/esm/screens/MfaScreens/EnrollSms.mjs +1 -1
- package/dist/esm/screens/MfaScreens/EnrollTotp.mjs +1 -1
- package/dist/esm/screens/MfaScreens/MfaEnrollmentFlowScreen.mjs +1 -1
- package/dist/esm/screens/MfaScreens/MfaVerifyFlowScreen.mjs +1 -1
- package/dist/esm/screens/MfaScreens/VerifyWithPasskey.mjs +1 -1
- package/dist/esm/screens/OAuthStatusScreen.mjs +1 -1
- package/dist/esm/screens/Recovery/PasswordRecoveryScreen.mjs +1 -1
- package/dist/esm/screens/Recovery/RecoveryPasswordCreateScreen.mjs +1 -1
- package/dist/esm/screens/Recovery/RecoverySelectionScreen.mjs +1 -1
- package/dist/esm/screens/Recovery/SetAutomaticRecoveryScreen.mjs +1 -1
- package/dist/esm/screens/SendSolanaTransactionScreen/SendSolanaTransactionScreen.mjs +1 -1
- package/dist/esm/screens/SendSolanaTransactionScreen/SolanaTransactionReceiptView.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/SendTransactionScreen.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/SendTransactionScreenView.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/TransactionDetail.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/TransactionErrorView.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/TransactionReceiptView.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/index.mjs +1 -1
- package/dist/esm/screens/SendTransactionScreen/usePrepareTransaction.mjs +1 -1
- package/dist/esm/screens/SignRequestScreen.mjs +1 -1
- package/dist/esm/screens/TelegramAuthScreen.mjs +1 -1
- package/dist/esm/screens/UpdateEmailScreen.mjs +1 -1
- package/dist/esm/session.mjs +1 -1
- package/dist/esm/smart-wallets.mjs +1 -1
- package/dist/esm/solana.mjs +1 -1
- package/dist/esm/svg/qr-codes.mjs +1 -1
- package/dist/esm/ui.mjs +1 -1
- package/dist/esm/utils/eth/getPublicClient.mjs +1 -0
- package/dist/esm/utils/index.mjs +1 -1
- package/package.json +7 -19
- package/dist/cjs/errors-3fxlG6WB.js +0 -1
- package/dist/cjs/ethers-De6TACnn.js +0 -1
- package/dist/cjs/index-DNFBYH7-.js +0 -1
- package/dist/cjs/lib/polygonGasStation.js +0 -1
- package/dist/cjs/privy-provider-Bb_yjats.js +0 -2
- package/dist/cjs/screens/SendTransactionScreen/EthersTransactionError.js +0 -1
- package/dist/esm/errors-9ucGZPEs.mjs +0 -1
- package/dist/esm/ethers-Cz-frLvN.mjs +0 -1
- package/dist/esm/index-B3QfI7v9.mjs +0 -1
- package/dist/esm/lib/polygonGasStation.mjs +0 -1
- package/dist/esm/privy-provider-Bvi3C9T4.mjs +0 -2
- package/dist/esm/screens/SendTransactionScreen/EthersTransactionError.mjs +0 -1
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { MouseEvent } from 'react';
|
|
3
|
-
import { c as Chain, f as UserRecoveryMethod,
|
|
4
|
-
export { at as Apple, aD as AppleOAuthWithMetadata, aL as ContractUIOptions, aw as CrossAppAccount, aG as CrossAppAccountWithMetadata, aq as Discord, az as DiscordOAuthWithMetadata, aI as Email, al as EmailWithMetadata, aP as Farcaster, aE as FarcasterWithMetadata, ar as Github, aA as GithubOAuthWithMetadata, ao as Google, ax as GoogleOAuthWithMetadata, d as LinkedAccountWithMetadata, as as LinkedIn, aC as LinkedInOAuthWithMetadata, aR as LoginMethodOrderOption,
|
|
5
|
-
import { ExternalProvider, StaticJsonRpcProvider, Web3Provider } from '@ethersproject/providers';
|
|
3
|
+
import { c as Chain, f as UserRecoveryMethod, i as PrivyFarcasterSignerInitResponse, j as MfaSubmitArgs, E as EthereumRpcRequestType, k as SolanaRpcRequestType, l as EthereumRpcResponseType, m as SolanaRpcResponseType, U as User, n as PrivyClientConfig, o as RpcConfig, p as EIP1193Provider, q as EntropyIdVerifier$1, r as RequestArguments, s as WalletTimeoutError, u as WalletConnector, B as BaseConnectedEthereumWallet, v as WalletClientType, w as ConnectedWalletMetadata, x as ConnectorType, y as WalletListEntry, z as ExternalWalletsConfig, A as BaseConnectedWallet, S as SolanaWalletConnector, D as ConnectWalletModalOptions, G as LoginModalOptions, H as CreateWalletOptions, W as Wallet, I as SetWalletRecoveryOptions, J as SignMessageModalUIOptions, K as SignTypedDataParams, M as MfaMethod, N as UnsignedTransactionRequest, Q as SendTransactionModalUIOptions, T as FundWalletConfig, b as SupportedSolanaTransaction, a as SolanaTransactionReceipt, V as ConnectedWallet, O as OAuthTokens, X as CrossAppProviderDetails, Y as OAuthProviderType, Z as MoonpaySignRequest, _ as MoonpaySignResponse, $ as SmartWalletConfig, a0 as PrivyServerConfig, L as LoginMethod, a1 as SiweWalletMetadata, a2 as TelegramAuthResult, a3 as OAuthUserInfo, a4 as OAuthFlowState, a5 as LoginWithCode, a6 as OtpFlowState, a7 as PasskeyFlowState, a8 as SiweFlowState, a9 as UnsignedTransactionRequestWithChainId, aa as BaseConnectedWalletType, C as ConnectedSolanaWallet, ab as CustomAuthFlowState } from './types-BlSTYBTj.js';
|
|
4
|
+
export { at as Apple, aD as AppleOAuthWithMetadata, aL as ContractUIOptions, aw as CrossAppAccount, aG as CrossAppAccountWithMetadata, aq as Discord, az as DiscordOAuthWithMetadata, aI as Email, al as EmailWithMetadata, aP as Farcaster, aE as FarcasterWithMetadata, ar as Github, aA as GithubOAuthWithMetadata, ao as Google, ax as GoogleOAuthWithMetadata, d as LinkedAccountWithMetadata, as as LinkedIn, aC as LinkedInOAuthWithMetadata, aR as LoginMethodOrderOption, ad as MessageTypes, ae as MoonpayConfig, af as MoonpayCurrencyCode, aN as MoonpayFundingConfig, ag as MoonpayPaymentMethod, aM as NativeFundingConfig, ak as NonEmptyArray, aQ as Passkey, aH as PasskeyWithMetadata, aJ as Phone, am as PhoneWithMetadata, aO as PriceDisplayOptions, ah as Quantity, g as SolanaCluster, h as SolanaFundingConfig, av as Telegram, aF as TelegramWithMetadata, au as Tiktok, aB as TiktokOAuthWithMetadata, ai as TransactionLog, aj as TransactionReceipt, aK as TransactionUIOptions, ap as Twitter, ay as TwitterOAuthWithMetadata, ac as TypedMessage, an as WalletWithMetadata } from './types-BlSTYBTj.js';
|
|
6
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
6
|
import { TurnstileProps } from '@marsidev/react-turnstile';
|
|
8
7
|
import EventEmitter from 'eventemitter3';
|
|
9
8
|
import { Store, EIP6963ProviderDetail } from 'mipd';
|
|
10
9
|
import { PasskeyAuthenticateInputType, CustomMetadataType, SmartWalletType, PrivyCoinbaseOnRampInitInput, PrivyCoinbaseOnRampInitResponse, PrivyCoinbaseOnRampStatusResponse } from '@privy-io/public-api';
|
|
10
|
+
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
11
|
+
import * as viem from 'viem';
|
|
12
|
+
import { Address, HttpTransport } from 'viem';
|
|
11
13
|
import * as _simplewebauthn_types from '@simplewebauthn/types';
|
|
12
14
|
import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
|
|
13
15
|
import * as _solana_wallet_adapter_base from '@solana/wallet-adapter-base';
|
|
14
16
|
import { SendTransactionOptions } from '@solana/wallet-adapter-base';
|
|
15
17
|
import * as _solana_web3_js from '@solana/web3.js';
|
|
16
18
|
import { Connection } from '@solana/web3.js';
|
|
17
|
-
import { AbstractProvider } from 'web3-core';
|
|
18
19
|
import { FetchOptions } from 'ofetch';
|
|
19
|
-
import { P as PrivyEvents } from './useFundSolanaWallet-
|
|
20
|
-
export { C as CallbackError, a as UseFundSolanaWalletInterface, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useFundSolanaWallet-
|
|
21
|
-
import 'viem';
|
|
20
|
+
import { P as PrivyEvents } from './useFundSolanaWallet-BSJVk8QT.js';
|
|
21
|
+
export { C as CallbackError, a as UseFundSolanaWalletInterface, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useFundSolanaWallet-BSJVk8QT.js';
|
|
22
22
|
import '@privy-io/js-sdk-core';
|
|
23
23
|
import '@metamask/eth-sig-util';
|
|
24
24
|
|
|
@@ -452,51 +452,6 @@ interface PrivyProviderProps {
|
|
|
452
452
|
*/
|
|
453
453
|
declare const PrivyProvider: ({ config, ...props }: PrivyProviderProps) => JSX.Element;
|
|
454
454
|
|
|
455
|
-
declare global {
|
|
456
|
-
interface Window {
|
|
457
|
-
ethereum?: any;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* @hidden
|
|
462
|
-
*
|
|
463
|
-
* The PrivyProxyProvider adds a middleware layer on top of the underlying wallet provider.
|
|
464
|
-
* */
|
|
465
|
-
declare class PrivyProxyProvider implements EIP1193Provider {
|
|
466
|
-
rpcTimeoutDuration: number;
|
|
467
|
-
walletProvider?: EIP1193Provider;
|
|
468
|
-
private _subscriptions;
|
|
469
|
-
constructor(walletProvider?: EIP1193Provider, rpcTimeoutDuration?: number);
|
|
470
|
-
on(eventName: string, listener: (...args: any[]) => void): any;
|
|
471
|
-
request(request: {
|
|
472
|
-
method: string;
|
|
473
|
-
params?: any[] | undefined;
|
|
474
|
-
}): Promise<any>;
|
|
475
|
-
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => any;
|
|
476
|
-
walletTimeout: (error?: WalletTimeoutError, timeoutMs?: number) => Promise<string[]>;
|
|
477
|
-
setWalletProvider: (provider: EIP1193Provider) => void;
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* @hidden
|
|
481
|
-
*
|
|
482
|
-
* Shim to convert to ethers-compatible ExternalProvider class.
|
|
483
|
-
*/
|
|
484
|
-
declare class AsExternalProvider extends PrivyProxyProvider implements ExternalProvider {
|
|
485
|
-
constructor(provider: EIP1193Provider);
|
|
486
|
-
isMetaMask?: boolean;
|
|
487
|
-
isStatus?: boolean;
|
|
488
|
-
host?: string;
|
|
489
|
-
path?: string;
|
|
490
|
-
sendAsync?: (request: {
|
|
491
|
-
method: string;
|
|
492
|
-
params?: Array<any>;
|
|
493
|
-
}, callback: (error: any, response: any) => void) => void;
|
|
494
|
-
send?: (request: {
|
|
495
|
-
method: string;
|
|
496
|
-
params?: Array<any>;
|
|
497
|
-
}, callback: (error: any, response: any) => void) => void;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
455
|
type CaptchaProps = Partial<Pick<TurnstileProps, 'onUnsupported' | 'onError' | 'onSuccess' | 'onExpire' | 'onSubmit'>> & {
|
|
501
456
|
delayedExecution?: boolean;
|
|
502
457
|
};
|
|
@@ -511,11 +466,672 @@ type CaptchaProps = Partial<Pick<TurnstileProps, 'onUnsupported' | 'onError' | '
|
|
|
511
466
|
*/
|
|
512
467
|
declare const Captcha: (props: CaptchaProps) => react_jsx_runtime.JSX.Element | null;
|
|
513
468
|
|
|
469
|
+
/**
|
|
470
|
+
* Build a viem public client for a given chainId if it is one of our
|
|
471
|
+
* supported chains.
|
|
472
|
+
*/
|
|
473
|
+
declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: RpcConfig, options: {
|
|
474
|
+
appId: string;
|
|
475
|
+
}) => {
|
|
476
|
+
account: {
|
|
477
|
+
address: `0x${string}`;
|
|
478
|
+
type: "json-rpc";
|
|
479
|
+
};
|
|
480
|
+
batch?: viem.ClientConfig["batch"] | undefined;
|
|
481
|
+
cacheTime: number;
|
|
482
|
+
ccipRead?: viem.ClientConfig["ccipRead"] | undefined;
|
|
483
|
+
chain: Chain;
|
|
484
|
+
key: string;
|
|
485
|
+
name: string;
|
|
486
|
+
pollingInterval: number;
|
|
487
|
+
request: viem.EIP1193RequestFn<[{
|
|
488
|
+
Method: "web3_clientVersion";
|
|
489
|
+
Parameters?: undefined;
|
|
490
|
+
ReturnType: string;
|
|
491
|
+
}, {
|
|
492
|
+
Method: "web3_sha3";
|
|
493
|
+
Parameters: [data: viem.Hash];
|
|
494
|
+
ReturnType: string;
|
|
495
|
+
}, {
|
|
496
|
+
Method: "net_listening";
|
|
497
|
+
Parameters?: undefined;
|
|
498
|
+
ReturnType: boolean;
|
|
499
|
+
}, {
|
|
500
|
+
Method: "net_peerCount";
|
|
501
|
+
Parameters?: undefined;
|
|
502
|
+
ReturnType: viem.Quantity;
|
|
503
|
+
}, {
|
|
504
|
+
Method: "net_version";
|
|
505
|
+
Parameters?: undefined;
|
|
506
|
+
ReturnType: viem.Quantity;
|
|
507
|
+
}, {
|
|
508
|
+
Method: "eth_blobBaseFee";
|
|
509
|
+
Parameters?: undefined;
|
|
510
|
+
ReturnType: viem.Quantity;
|
|
511
|
+
}, {
|
|
512
|
+
Method: "eth_blockNumber";
|
|
513
|
+
Parameters?: undefined;
|
|
514
|
+
ReturnType: viem.Quantity;
|
|
515
|
+
}, {
|
|
516
|
+
Method: "eth_call";
|
|
517
|
+
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
|
|
518
|
+
ReturnType: viem.Hex;
|
|
519
|
+
}, {
|
|
520
|
+
Method: "eth_chainId";
|
|
521
|
+
Parameters?: undefined;
|
|
522
|
+
ReturnType: viem.Quantity;
|
|
523
|
+
}, {
|
|
524
|
+
Method: "eth_coinbase";
|
|
525
|
+
Parameters?: undefined;
|
|
526
|
+
ReturnType: Address;
|
|
527
|
+
}, {
|
|
528
|
+
Method: "eth_estimateGas";
|
|
529
|
+
Parameters: [transaction: viem.RpcTransactionRequest] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag, stateOverride: viem.RpcStateOverride];
|
|
530
|
+
ReturnType: viem.Quantity;
|
|
531
|
+
}, {
|
|
532
|
+
Method: "eth_feeHistory";
|
|
533
|
+
Parameters: [blockCount: viem.Quantity, newestBlock: viem.RpcBlockNumber | viem.BlockTag, rewardPercentiles: number[] | undefined];
|
|
534
|
+
ReturnType: viem.RpcFeeHistory;
|
|
535
|
+
}, {
|
|
536
|
+
Method: "eth_gasPrice";
|
|
537
|
+
Parameters?: undefined;
|
|
538
|
+
ReturnType: viem.Quantity;
|
|
539
|
+
}, {
|
|
540
|
+
Method: "eth_getBalance";
|
|
541
|
+
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
542
|
+
ReturnType: viem.Quantity;
|
|
543
|
+
}, {
|
|
544
|
+
Method: "eth_getBlockByHash";
|
|
545
|
+
Parameters: [hash: viem.Hash, includeTransactionObjects: boolean];
|
|
546
|
+
ReturnType: viem.RpcBlock | null;
|
|
547
|
+
}, {
|
|
548
|
+
Method: "eth_getBlockByNumber";
|
|
549
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, includeTransactionObjects: boolean];
|
|
550
|
+
ReturnType: viem.RpcBlock | null;
|
|
551
|
+
}, {
|
|
552
|
+
Method: "eth_getBlockTransactionCountByHash";
|
|
553
|
+
Parameters: [hash: viem.Hash];
|
|
554
|
+
ReturnType: viem.Quantity;
|
|
555
|
+
}, {
|
|
556
|
+
Method: "eth_getBlockTransactionCountByNumber";
|
|
557
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag];
|
|
558
|
+
ReturnType: viem.Quantity;
|
|
559
|
+
}, {
|
|
560
|
+
Method: "eth_getCode";
|
|
561
|
+
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
562
|
+
ReturnType: viem.Hex;
|
|
563
|
+
}, {
|
|
564
|
+
Method: "eth_getFilterChanges";
|
|
565
|
+
Parameters: [filterId: viem.Quantity];
|
|
566
|
+
ReturnType: viem.RpcLog[] | viem.Hex[];
|
|
567
|
+
}, {
|
|
568
|
+
Method: "eth_getFilterLogs";
|
|
569
|
+
Parameters: [filterId: viem.Quantity];
|
|
570
|
+
ReturnType: viem.RpcLog[];
|
|
571
|
+
}, {
|
|
572
|
+
Method: "eth_getLogs";
|
|
573
|
+
Parameters: [{
|
|
574
|
+
address?: Address | Address[] | undefined;
|
|
575
|
+
topics?: viem.LogTopic[] | undefined;
|
|
576
|
+
} & ({
|
|
577
|
+
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
578
|
+
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
579
|
+
blockHash?: undefined;
|
|
580
|
+
} | {
|
|
581
|
+
fromBlock?: undefined;
|
|
582
|
+
toBlock?: undefined;
|
|
583
|
+
blockHash?: viem.Hash | undefined;
|
|
584
|
+
})];
|
|
585
|
+
ReturnType: viem.RpcLog[];
|
|
586
|
+
}, {
|
|
587
|
+
Method: "eth_getProof";
|
|
588
|
+
Parameters: [address: Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
589
|
+
ReturnType: viem.RpcProof;
|
|
590
|
+
}, {
|
|
591
|
+
Method: "eth_getStorageAt";
|
|
592
|
+
Parameters: [address: Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
593
|
+
ReturnType: viem.Hex;
|
|
594
|
+
}, {
|
|
595
|
+
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
596
|
+
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
597
|
+
ReturnType: viem.RpcTransaction | null;
|
|
598
|
+
}, {
|
|
599
|
+
Method: "eth_getTransactionByBlockNumberAndIndex";
|
|
600
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, index: viem.Quantity];
|
|
601
|
+
ReturnType: viem.RpcTransaction | null;
|
|
602
|
+
}, {
|
|
603
|
+
Method: "eth_getTransactionByHash";
|
|
604
|
+
Parameters: [hash: viem.Hash];
|
|
605
|
+
ReturnType: viem.RpcTransaction | null;
|
|
606
|
+
}, {
|
|
607
|
+
Method: "eth_getTransactionCount";
|
|
608
|
+
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
609
|
+
ReturnType: viem.Quantity;
|
|
610
|
+
}, {
|
|
611
|
+
Method: "eth_getTransactionReceipt";
|
|
612
|
+
Parameters: [hash: viem.Hash];
|
|
613
|
+
ReturnType: viem.RpcTransactionReceipt | null;
|
|
614
|
+
}, {
|
|
615
|
+
Method: "eth_getUncleByBlockHashAndIndex";
|
|
616
|
+
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
617
|
+
ReturnType: viem.RpcUncle | null;
|
|
618
|
+
}, {
|
|
619
|
+
Method: "eth_getUncleByBlockNumberAndIndex";
|
|
620
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, index: viem.Quantity];
|
|
621
|
+
ReturnType: viem.RpcUncle | null;
|
|
622
|
+
}, {
|
|
623
|
+
Method: "eth_getUncleCountByBlockHash";
|
|
624
|
+
Parameters: [hash: viem.Hash];
|
|
625
|
+
ReturnType: viem.Quantity;
|
|
626
|
+
}, {
|
|
627
|
+
Method: "eth_getUncleCountByBlockNumber";
|
|
628
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag];
|
|
629
|
+
ReturnType: viem.Quantity;
|
|
630
|
+
}, {
|
|
631
|
+
Method: "eth_maxPriorityFeePerGas";
|
|
632
|
+
Parameters?: undefined;
|
|
633
|
+
ReturnType: viem.Quantity;
|
|
634
|
+
}, {
|
|
635
|
+
Method: "eth_newBlockFilter";
|
|
636
|
+
Parameters?: undefined;
|
|
637
|
+
ReturnType: viem.Quantity;
|
|
638
|
+
}, {
|
|
639
|
+
Method: "eth_newFilter";
|
|
640
|
+
Parameters: [filter: {
|
|
641
|
+
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
642
|
+
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
643
|
+
address?: Address | Address[] | undefined;
|
|
644
|
+
topics?: viem.LogTopic[] | undefined;
|
|
645
|
+
}];
|
|
646
|
+
ReturnType: viem.Quantity;
|
|
647
|
+
}, {
|
|
648
|
+
Method: "eth_newPendingTransactionFilter";
|
|
649
|
+
Parameters?: undefined;
|
|
650
|
+
ReturnType: viem.Quantity;
|
|
651
|
+
}, {
|
|
652
|
+
Method: "eth_protocolVersion";
|
|
653
|
+
Parameters?: undefined;
|
|
654
|
+
ReturnType: string;
|
|
655
|
+
}, {
|
|
656
|
+
Method: "eth_sendRawTransaction";
|
|
657
|
+
Parameters: [signedTransaction: viem.Hex];
|
|
658
|
+
ReturnType: viem.Hash;
|
|
659
|
+
}, {
|
|
660
|
+
Method: "eth_uninstallFilter";
|
|
661
|
+
Parameters: [filterId: viem.Quantity];
|
|
662
|
+
ReturnType: boolean;
|
|
663
|
+
}, ...{
|
|
664
|
+
Method: string;
|
|
665
|
+
Parameters?: unknown | undefined;
|
|
666
|
+
ReturnType: unknown;
|
|
667
|
+
}[]]>;
|
|
668
|
+
transport: viem.TransportConfig<"http", viem.EIP1193RequestFn> & {
|
|
669
|
+
fetchOptions?: viem.HttpTransportConfig["fetchOptions"] | undefined;
|
|
670
|
+
url?: string | undefined;
|
|
671
|
+
};
|
|
672
|
+
type: string;
|
|
673
|
+
uid: string;
|
|
674
|
+
call: (parameters: viem.CallParameters<Chain>) => Promise<viem.CallReturnType>;
|
|
675
|
+
createBlockFilter: () => Promise<viem.CreateBlockFilterReturnType>;
|
|
676
|
+
createContractEventFilter: <const abi extends viem.Abi | readonly unknown[], eventName extends viem.ContractEventName<abi> | undefined, args extends viem.MaybeExtractEventArgsFromAbi<abi, eventName> | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.CreateContractEventFilterParameters<abi, eventName, args, strict, fromBlock, toBlock>) => Promise<viem.CreateContractEventFilterReturnType<abi, eventName, args, strict, fromBlock, toBlock>>;
|
|
677
|
+
createEventFilter: <const abiEvent extends viem.AbiEvent | undefined = undefined, const abiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = abiEvent extends viem.AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, _EventName extends string | undefined = viem.MaybeAbiEventName<abiEvent>, _Args extends viem.MaybeExtractEventArgsFromAbi<abiEvents, _EventName> | undefined = undefined>(args?: viem.CreateEventFilterParameters<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args> | undefined) => Promise<viem.CreateEventFilterReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args>>;
|
|
678
|
+
createPendingTransactionFilter: () => Promise<viem.CreatePendingTransactionFilterReturnType>;
|
|
679
|
+
estimateContractGas: <chain extends viem.Chain | undefined, const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, args extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>>(args: viem.EstimateContractGasParameters<abi, functionName, args, chain>) => Promise<viem.EstimateContractGasReturnType>;
|
|
680
|
+
estimateGas: (args: viem.EstimateGasParameters<Chain>) => Promise<viem.EstimateGasReturnType>;
|
|
681
|
+
getBalance: (args: viem.GetBalanceParameters) => Promise<viem.GetBalanceReturnType>;
|
|
682
|
+
getBlobBaseFee: () => Promise<viem.GetBlobBaseFeeReturnType>;
|
|
683
|
+
getBlock: <includeTransactions extends boolean = false, blockTag extends viem.BlockTag = "latest">(args?: viem.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<viem.GetBlockReturnType<Chain, includeTransactions, blockTag>>;
|
|
684
|
+
getBlockNumber: (args?: viem.GetBlockNumberParameters | undefined) => Promise<viem.GetBlockNumberReturnType>;
|
|
685
|
+
getBlockTransactionCount: (args?: viem.GetBlockTransactionCountParameters | undefined) => Promise<viem.GetBlockTransactionCountReturnType>;
|
|
686
|
+
getBytecode: (args: viem.GetBytecodeParameters) => Promise<viem.GetBytecodeReturnType>;
|
|
687
|
+
getChainId: () => Promise<viem.GetChainIdReturnType>;
|
|
688
|
+
getCode: (args: viem.GetBytecodeParameters) => Promise<viem.GetBytecodeReturnType>;
|
|
689
|
+
getContractEvents: <const abi extends viem.Abi | readonly unknown[], eventName extends viem.ContractEventName<abi> | undefined = undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetContractEventsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
|
|
690
|
+
getEip712Domain: (args: viem.GetEip712DomainParameters) => Promise<viem.GetEip712DomainReturnType>;
|
|
691
|
+
getEnsAddress: (args: viem.GetEnsAddressParameters) => Promise<viem.GetEnsAddressReturnType>;
|
|
692
|
+
getEnsAvatar: (args: viem.GetEnsAvatarParameters) => Promise<viem.GetEnsAvatarReturnType>;
|
|
693
|
+
getEnsName: (args: viem.GetEnsNameParameters) => Promise<viem.GetEnsNameReturnType>;
|
|
694
|
+
getEnsResolver: (args: viem.GetEnsResolverParameters) => Promise<viem.GetEnsResolverReturnType>;
|
|
695
|
+
getEnsText: (args: viem.GetEnsTextParameters) => Promise<viem.GetEnsTextReturnType>;
|
|
696
|
+
getFeeHistory: (args: viem.GetFeeHistoryParameters) => Promise<viem.GetFeeHistoryReturnType>;
|
|
697
|
+
estimateFeesPerGas: <chainOverride extends viem.Chain | undefined = undefined, type extends viem.FeeValuesType = "eip1559">(args?: viem.EstimateFeesPerGasParameters<Chain, chainOverride, type> | undefined) => Promise<viem.EstimateFeesPerGasReturnType<type>>;
|
|
698
|
+
getFilterChanges: <filterType extends viem.FilterType, const abi extends viem.Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetFilterChangesParameters<filterType, abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>;
|
|
699
|
+
getFilterLogs: <const abi extends viem.Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args: viem.GetFilterLogsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<viem.GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
|
|
700
|
+
getGasPrice: () => Promise<viem.GetGasPriceReturnType>;
|
|
701
|
+
getLogs: <const abiEvent extends viem.AbiEvent | undefined = undefined, const abiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = abiEvent extends viem.AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined, fromBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined, toBlock extends viem.BlockNumber | viem.BlockTag | undefined = undefined>(args?: viem.GetLogsParameters<abiEvent, abiEvents, strict, fromBlock, toBlock> | undefined) => Promise<viem.GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>;
|
|
702
|
+
getProof: (args: viem.GetProofParameters) => Promise<viem.GetProofReturnType>;
|
|
703
|
+
estimateMaxPriorityFeePerGas: <chainOverride extends viem.Chain | undefined = undefined>(args?: {
|
|
704
|
+
chain?: chainOverride | null | undefined;
|
|
705
|
+
} | undefined) => Promise<viem.EstimateMaxPriorityFeePerGasReturnType>;
|
|
706
|
+
getStorageAt: (args: viem.GetStorageAtParameters) => Promise<viem.GetStorageAtReturnType>;
|
|
707
|
+
getTransaction: <blockTag extends viem.BlockTag = "latest">(args: viem.GetTransactionParameters<blockTag>) => Promise<viem.GetTransactionReturnType<Chain, blockTag>>;
|
|
708
|
+
getTransactionConfirmations: (args: viem.GetTransactionConfirmationsParameters<Chain>) => Promise<viem.GetTransactionConfirmationsReturnType>;
|
|
709
|
+
getTransactionCount: (args: viem.GetTransactionCountParameters) => Promise<viem.GetTransactionCountReturnType>;
|
|
710
|
+
getTransactionReceipt: (args: viem.GetTransactionReceiptParameters) => Promise<viem.GetTransactionReceiptReturnType<Chain>>;
|
|
711
|
+
multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem.MulticallParameters<contracts, allowFailure>) => Promise<viem.MulticallReturnType<contracts, allowFailure>>;
|
|
712
|
+
prepareTransactionRequest: <const request extends viem.PrepareTransactionRequestRequest<Chain, chainOverride>, chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | Address | undefined = undefined>(args: viem.PrepareTransactionRequestParameters<Chain, viem.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem.PrepareTransactionRequestReturnType<Chain, viem.Account | undefined, chainOverride, accountOverride, request>>;
|
|
713
|
+
readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
|
|
714
|
+
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
715
|
+
simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, args_1 extends viem.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends viem.Chain | undefined, accountOverride extends viem.Account | Address | undefined = undefined>(args: viem.SimulateContractParameters<abi, functionName, args_1, Chain, chainOverride, accountOverride>) => Promise<viem.SimulateContractReturnType<abi, functionName, args_1, Chain, viem.Account | undefined, chainOverride, accountOverride>>;
|
|
716
|
+
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
717
|
+
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
718
|
+
verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
|
|
719
|
+
uninstallFilter: (args: viem.UninstallFilterParameters) => Promise<viem.UninstallFilterReturnType>;
|
|
720
|
+
waitForTransactionReceipt: (args: viem.WaitForTransactionReceiptParameters<Chain>) => Promise<viem.WaitForTransactionReceiptReturnType<Chain>>;
|
|
721
|
+
watchBlockNumber: (args: viem.WatchBlockNumberParameters) => viem.WatchBlockNumberReturnType;
|
|
722
|
+
watchBlocks: <includeTransactions extends boolean = false, blockTag extends viem.BlockTag = "latest">(args: viem.WatchBlocksParameters<HttpTransport, Chain, includeTransactions, blockTag>) => viem.WatchBlocksReturnType;
|
|
723
|
+
watchContractEvent: <const abi extends viem.Abi | readonly unknown[], eventName extends viem.ContractEventName<abi>, strict extends boolean | undefined = undefined>(args: viem.WatchContractEventParameters<abi, eventName, strict, HttpTransport>) => viem.WatchContractEventReturnType;
|
|
724
|
+
watchEvent: <const abiEvent extends viem.AbiEvent | undefined = undefined, const abiEvents extends readonly viem.AbiEvent[] | readonly unknown[] | undefined = abiEvent extends viem.AbiEvent ? [abiEvent] : undefined, strict extends boolean | undefined = undefined>(args: viem.WatchEventParameters<abiEvent, abiEvents, strict, HttpTransport>) => viem.WatchEventReturnType;
|
|
725
|
+
watchPendingTransactions: (args: viem.WatchPendingTransactionsParameters<HttpTransport>) => viem.WatchPendingTransactionsReturnType;
|
|
726
|
+
extend: <const client extends {
|
|
727
|
+
[x: string]: unknown;
|
|
728
|
+
account?: undefined;
|
|
729
|
+
batch?: undefined;
|
|
730
|
+
cacheTime?: undefined;
|
|
731
|
+
ccipRead?: undefined;
|
|
732
|
+
chain?: undefined;
|
|
733
|
+
key?: undefined;
|
|
734
|
+
name?: undefined;
|
|
735
|
+
pollingInterval?: undefined;
|
|
736
|
+
request?: undefined;
|
|
737
|
+
transport?: undefined;
|
|
738
|
+
type?: undefined;
|
|
739
|
+
uid?: undefined;
|
|
740
|
+
} & viem.ExactPartial<Pick<viem.PublicActions<HttpTransport, Chain, {
|
|
741
|
+
address: `0x${string}`;
|
|
742
|
+
type: "json-rpc";
|
|
743
|
+
}>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem.WalletActions<Chain, {
|
|
744
|
+
address: `0x${string}`;
|
|
745
|
+
type: "json-rpc";
|
|
746
|
+
}>, "sendTransaction" | "writeContract">>>(fn: (client: viem.Client<HttpTransport, Chain, {
|
|
747
|
+
address: `0x${string}`;
|
|
748
|
+
type: "json-rpc";
|
|
749
|
+
}, [{
|
|
750
|
+
Method: "web3_clientVersion";
|
|
751
|
+
Parameters?: undefined;
|
|
752
|
+
ReturnType: string;
|
|
753
|
+
}, {
|
|
754
|
+
Method: "web3_sha3";
|
|
755
|
+
Parameters: [data: viem.Hash];
|
|
756
|
+
ReturnType: string;
|
|
757
|
+
}, {
|
|
758
|
+
Method: "net_listening";
|
|
759
|
+
Parameters?: undefined;
|
|
760
|
+
ReturnType: boolean;
|
|
761
|
+
}, {
|
|
762
|
+
Method: "net_peerCount";
|
|
763
|
+
Parameters?: undefined;
|
|
764
|
+
ReturnType: viem.Quantity;
|
|
765
|
+
}, {
|
|
766
|
+
Method: "net_version";
|
|
767
|
+
Parameters?: undefined;
|
|
768
|
+
ReturnType: viem.Quantity;
|
|
769
|
+
}, {
|
|
770
|
+
Method: "eth_blobBaseFee";
|
|
771
|
+
Parameters?: undefined;
|
|
772
|
+
ReturnType: viem.Quantity;
|
|
773
|
+
}, {
|
|
774
|
+
Method: "eth_blockNumber";
|
|
775
|
+
Parameters?: undefined;
|
|
776
|
+
ReturnType: viem.Quantity;
|
|
777
|
+
}, {
|
|
778
|
+
Method: "eth_call";
|
|
779
|
+
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
|
|
780
|
+
ReturnType: viem.Hex;
|
|
781
|
+
}, {
|
|
782
|
+
Method: "eth_chainId";
|
|
783
|
+
Parameters?: undefined;
|
|
784
|
+
ReturnType: viem.Quantity;
|
|
785
|
+
}, {
|
|
786
|
+
Method: "eth_coinbase";
|
|
787
|
+
Parameters?: undefined;
|
|
788
|
+
ReturnType: Address;
|
|
789
|
+
}, {
|
|
790
|
+
Method: "eth_estimateGas";
|
|
791
|
+
Parameters: [transaction: viem.RpcTransactionRequest] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag, stateOverride: viem.RpcStateOverride];
|
|
792
|
+
ReturnType: viem.Quantity;
|
|
793
|
+
}, {
|
|
794
|
+
Method: "eth_feeHistory";
|
|
795
|
+
Parameters: [blockCount: viem.Quantity, newestBlock: viem.RpcBlockNumber | viem.BlockTag, rewardPercentiles: number[] | undefined];
|
|
796
|
+
ReturnType: viem.RpcFeeHistory;
|
|
797
|
+
}, {
|
|
798
|
+
Method: "eth_gasPrice";
|
|
799
|
+
Parameters?: undefined;
|
|
800
|
+
ReturnType: viem.Quantity;
|
|
801
|
+
}, {
|
|
802
|
+
Method: "eth_getBalance";
|
|
803
|
+
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
804
|
+
ReturnType: viem.Quantity;
|
|
805
|
+
}, {
|
|
806
|
+
Method: "eth_getBlockByHash";
|
|
807
|
+
Parameters: [hash: viem.Hash, includeTransactionObjects: boolean];
|
|
808
|
+
ReturnType: viem.RpcBlock | null;
|
|
809
|
+
}, {
|
|
810
|
+
Method: "eth_getBlockByNumber";
|
|
811
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, includeTransactionObjects: boolean];
|
|
812
|
+
ReturnType: viem.RpcBlock | null;
|
|
813
|
+
}, {
|
|
814
|
+
Method: "eth_getBlockTransactionCountByHash";
|
|
815
|
+
Parameters: [hash: viem.Hash];
|
|
816
|
+
ReturnType: viem.Quantity;
|
|
817
|
+
}, {
|
|
818
|
+
Method: "eth_getBlockTransactionCountByNumber";
|
|
819
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag];
|
|
820
|
+
ReturnType: viem.Quantity;
|
|
821
|
+
}, {
|
|
822
|
+
Method: "eth_getCode";
|
|
823
|
+
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
824
|
+
ReturnType: viem.Hex;
|
|
825
|
+
}, {
|
|
826
|
+
Method: "eth_getFilterChanges";
|
|
827
|
+
Parameters: [filterId: viem.Quantity];
|
|
828
|
+
ReturnType: viem.RpcLog[] | viem.Hex[];
|
|
829
|
+
}, {
|
|
830
|
+
Method: "eth_getFilterLogs";
|
|
831
|
+
Parameters: [filterId: viem.Quantity];
|
|
832
|
+
ReturnType: viem.RpcLog[];
|
|
833
|
+
}, {
|
|
834
|
+
Method: "eth_getLogs";
|
|
835
|
+
Parameters: [{
|
|
836
|
+
address?: Address | Address[] | undefined;
|
|
837
|
+
topics?: viem.LogTopic[] | undefined;
|
|
838
|
+
} & ({
|
|
839
|
+
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
840
|
+
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
841
|
+
blockHash?: undefined;
|
|
842
|
+
} | {
|
|
843
|
+
fromBlock?: undefined;
|
|
844
|
+
toBlock?: undefined;
|
|
845
|
+
blockHash?: viem.Hash | undefined;
|
|
846
|
+
})];
|
|
847
|
+
ReturnType: viem.RpcLog[];
|
|
848
|
+
}, {
|
|
849
|
+
Method: "eth_getProof";
|
|
850
|
+
Parameters: [address: Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
851
|
+
ReturnType: viem.RpcProof;
|
|
852
|
+
}, {
|
|
853
|
+
Method: "eth_getStorageAt";
|
|
854
|
+
Parameters: [address: Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
855
|
+
ReturnType: viem.Hex;
|
|
856
|
+
}, {
|
|
857
|
+
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
858
|
+
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
859
|
+
ReturnType: viem.RpcTransaction | null;
|
|
860
|
+
}, {
|
|
861
|
+
Method: "eth_getTransactionByBlockNumberAndIndex";
|
|
862
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, index: viem.Quantity];
|
|
863
|
+
ReturnType: viem.RpcTransaction | null;
|
|
864
|
+
}, {
|
|
865
|
+
Method: "eth_getTransactionByHash";
|
|
866
|
+
Parameters: [hash: viem.Hash];
|
|
867
|
+
ReturnType: viem.RpcTransaction | null;
|
|
868
|
+
}, {
|
|
869
|
+
Method: "eth_getTransactionCount";
|
|
870
|
+
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
871
|
+
ReturnType: viem.Quantity;
|
|
872
|
+
}, {
|
|
873
|
+
Method: "eth_getTransactionReceipt";
|
|
874
|
+
Parameters: [hash: viem.Hash];
|
|
875
|
+
ReturnType: viem.RpcTransactionReceipt | null;
|
|
876
|
+
}, {
|
|
877
|
+
Method: "eth_getUncleByBlockHashAndIndex";
|
|
878
|
+
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
879
|
+
ReturnType: viem.RpcUncle | null;
|
|
880
|
+
}, {
|
|
881
|
+
Method: "eth_getUncleByBlockNumberAndIndex";
|
|
882
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, index: viem.Quantity];
|
|
883
|
+
ReturnType: viem.RpcUncle | null;
|
|
884
|
+
}, {
|
|
885
|
+
Method: "eth_getUncleCountByBlockHash";
|
|
886
|
+
Parameters: [hash: viem.Hash];
|
|
887
|
+
ReturnType: viem.Quantity;
|
|
888
|
+
}, {
|
|
889
|
+
Method: "eth_getUncleCountByBlockNumber";
|
|
890
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag];
|
|
891
|
+
ReturnType: viem.Quantity;
|
|
892
|
+
}, {
|
|
893
|
+
Method: "eth_maxPriorityFeePerGas";
|
|
894
|
+
Parameters?: undefined;
|
|
895
|
+
ReturnType: viem.Quantity;
|
|
896
|
+
}, {
|
|
897
|
+
Method: "eth_newBlockFilter";
|
|
898
|
+
Parameters?: undefined;
|
|
899
|
+
ReturnType: viem.Quantity;
|
|
900
|
+
}, {
|
|
901
|
+
Method: "eth_newFilter";
|
|
902
|
+
Parameters: [filter: {
|
|
903
|
+
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
904
|
+
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
905
|
+
address?: Address | Address[] | undefined;
|
|
906
|
+
topics?: viem.LogTopic[] | undefined;
|
|
907
|
+
}];
|
|
908
|
+
ReturnType: viem.Quantity;
|
|
909
|
+
}, {
|
|
910
|
+
Method: "eth_newPendingTransactionFilter";
|
|
911
|
+
Parameters?: undefined;
|
|
912
|
+
ReturnType: viem.Quantity;
|
|
913
|
+
}, {
|
|
914
|
+
Method: "eth_protocolVersion";
|
|
915
|
+
Parameters?: undefined;
|
|
916
|
+
ReturnType: string;
|
|
917
|
+
}, {
|
|
918
|
+
Method: "eth_sendRawTransaction";
|
|
919
|
+
Parameters: [signedTransaction: viem.Hex];
|
|
920
|
+
ReturnType: viem.Hash;
|
|
921
|
+
}, {
|
|
922
|
+
Method: "eth_uninstallFilter";
|
|
923
|
+
Parameters: [filterId: viem.Quantity];
|
|
924
|
+
ReturnType: boolean;
|
|
925
|
+
}, ...{
|
|
926
|
+
Method: string;
|
|
927
|
+
Parameters?: unknown | undefined;
|
|
928
|
+
ReturnType: unknown;
|
|
929
|
+
}[]], viem.PublicActions<HttpTransport, Chain>>) => client) => viem.Client<HttpTransport, Chain, {
|
|
930
|
+
address: `0x${string}`;
|
|
931
|
+
type: "json-rpc";
|
|
932
|
+
}, [{
|
|
933
|
+
Method: "web3_clientVersion";
|
|
934
|
+
Parameters?: undefined;
|
|
935
|
+
ReturnType: string;
|
|
936
|
+
}, {
|
|
937
|
+
Method: "web3_sha3";
|
|
938
|
+
Parameters: [data: viem.Hash];
|
|
939
|
+
ReturnType: string;
|
|
940
|
+
}, {
|
|
941
|
+
Method: "net_listening";
|
|
942
|
+
Parameters?: undefined;
|
|
943
|
+
ReturnType: boolean;
|
|
944
|
+
}, {
|
|
945
|
+
Method: "net_peerCount";
|
|
946
|
+
Parameters?: undefined;
|
|
947
|
+
ReturnType: viem.Quantity;
|
|
948
|
+
}, {
|
|
949
|
+
Method: "net_version";
|
|
950
|
+
Parameters?: undefined;
|
|
951
|
+
ReturnType: viem.Quantity;
|
|
952
|
+
}, {
|
|
953
|
+
Method: "eth_blobBaseFee";
|
|
954
|
+
Parameters?: undefined;
|
|
955
|
+
ReturnType: viem.Quantity;
|
|
956
|
+
}, {
|
|
957
|
+
Method: "eth_blockNumber";
|
|
958
|
+
Parameters?: undefined;
|
|
959
|
+
ReturnType: viem.Quantity;
|
|
960
|
+
}, {
|
|
961
|
+
Method: "eth_call";
|
|
962
|
+
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier, stateOverrideSet: viem.RpcStateOverride];
|
|
963
|
+
ReturnType: viem.Hex;
|
|
964
|
+
}, {
|
|
965
|
+
Method: "eth_chainId";
|
|
966
|
+
Parameters?: undefined;
|
|
967
|
+
ReturnType: viem.Quantity;
|
|
968
|
+
}, {
|
|
969
|
+
Method: "eth_coinbase";
|
|
970
|
+
Parameters?: undefined;
|
|
971
|
+
ReturnType: Address;
|
|
972
|
+
}, {
|
|
973
|
+
Method: "eth_estimateGas";
|
|
974
|
+
Parameters: [transaction: viem.RpcTransactionRequest] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag] | [transaction: viem.RpcTransactionRequest, block: viem.RpcBlockNumber | viem.BlockTag, stateOverride: viem.RpcStateOverride];
|
|
975
|
+
ReturnType: viem.Quantity;
|
|
976
|
+
}, {
|
|
977
|
+
Method: "eth_feeHistory";
|
|
978
|
+
Parameters: [blockCount: viem.Quantity, newestBlock: viem.RpcBlockNumber | viem.BlockTag, rewardPercentiles: number[] | undefined];
|
|
979
|
+
ReturnType: viem.RpcFeeHistory;
|
|
980
|
+
}, {
|
|
981
|
+
Method: "eth_gasPrice";
|
|
982
|
+
Parameters?: undefined;
|
|
983
|
+
ReturnType: viem.Quantity;
|
|
984
|
+
}, {
|
|
985
|
+
Method: "eth_getBalance";
|
|
986
|
+
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
987
|
+
ReturnType: viem.Quantity;
|
|
988
|
+
}, {
|
|
989
|
+
Method: "eth_getBlockByHash";
|
|
990
|
+
Parameters: [hash: viem.Hash, includeTransactionObjects: boolean];
|
|
991
|
+
ReturnType: viem.RpcBlock | null;
|
|
992
|
+
}, {
|
|
993
|
+
Method: "eth_getBlockByNumber";
|
|
994
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, includeTransactionObjects: boolean];
|
|
995
|
+
ReturnType: viem.RpcBlock | null;
|
|
996
|
+
}, {
|
|
997
|
+
Method: "eth_getBlockTransactionCountByHash";
|
|
998
|
+
Parameters: [hash: viem.Hash];
|
|
999
|
+
ReturnType: viem.Quantity;
|
|
1000
|
+
}, {
|
|
1001
|
+
Method: "eth_getBlockTransactionCountByNumber";
|
|
1002
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag];
|
|
1003
|
+
ReturnType: viem.Quantity;
|
|
1004
|
+
}, {
|
|
1005
|
+
Method: "eth_getCode";
|
|
1006
|
+
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
1007
|
+
ReturnType: viem.Hex;
|
|
1008
|
+
}, {
|
|
1009
|
+
Method: "eth_getFilterChanges";
|
|
1010
|
+
Parameters: [filterId: viem.Quantity];
|
|
1011
|
+
ReturnType: viem.RpcLog[] | viem.Hex[];
|
|
1012
|
+
}, {
|
|
1013
|
+
Method: "eth_getFilterLogs";
|
|
1014
|
+
Parameters: [filterId: viem.Quantity];
|
|
1015
|
+
ReturnType: viem.RpcLog[];
|
|
1016
|
+
}, {
|
|
1017
|
+
Method: "eth_getLogs";
|
|
1018
|
+
Parameters: [{
|
|
1019
|
+
address?: Address | Address[] | undefined;
|
|
1020
|
+
topics?: viem.LogTopic[] | undefined;
|
|
1021
|
+
} & ({
|
|
1022
|
+
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
1023
|
+
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
1024
|
+
blockHash?: undefined;
|
|
1025
|
+
} | {
|
|
1026
|
+
fromBlock?: undefined;
|
|
1027
|
+
toBlock?: undefined;
|
|
1028
|
+
blockHash?: viem.Hash | undefined;
|
|
1029
|
+
})];
|
|
1030
|
+
ReturnType: viem.RpcLog[];
|
|
1031
|
+
}, {
|
|
1032
|
+
Method: "eth_getProof";
|
|
1033
|
+
Parameters: [address: Address, storageKeys: viem.Hash[], block: viem.RpcBlockNumber | viem.BlockTag];
|
|
1034
|
+
ReturnType: viem.RpcProof;
|
|
1035
|
+
}, {
|
|
1036
|
+
Method: "eth_getStorageAt";
|
|
1037
|
+
Parameters: [address: Address, index: viem.Quantity, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
1038
|
+
ReturnType: viem.Hex;
|
|
1039
|
+
}, {
|
|
1040
|
+
Method: "eth_getTransactionByBlockHashAndIndex";
|
|
1041
|
+
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
1042
|
+
ReturnType: viem.RpcTransaction | null;
|
|
1043
|
+
}, {
|
|
1044
|
+
Method: "eth_getTransactionByBlockNumberAndIndex";
|
|
1045
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, index: viem.Quantity];
|
|
1046
|
+
ReturnType: viem.RpcTransaction | null;
|
|
1047
|
+
}, {
|
|
1048
|
+
Method: "eth_getTransactionByHash";
|
|
1049
|
+
Parameters: [hash: viem.Hash];
|
|
1050
|
+
ReturnType: viem.RpcTransaction | null;
|
|
1051
|
+
}, {
|
|
1052
|
+
Method: "eth_getTransactionCount";
|
|
1053
|
+
Parameters: [address: Address, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
1054
|
+
ReturnType: viem.Quantity;
|
|
1055
|
+
}, {
|
|
1056
|
+
Method: "eth_getTransactionReceipt";
|
|
1057
|
+
Parameters: [hash: viem.Hash];
|
|
1058
|
+
ReturnType: viem.RpcTransactionReceipt | null;
|
|
1059
|
+
}, {
|
|
1060
|
+
Method: "eth_getUncleByBlockHashAndIndex";
|
|
1061
|
+
Parameters: [hash: viem.Hash, index: viem.Quantity];
|
|
1062
|
+
ReturnType: viem.RpcUncle | null;
|
|
1063
|
+
}, {
|
|
1064
|
+
Method: "eth_getUncleByBlockNumberAndIndex";
|
|
1065
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag, index: viem.Quantity];
|
|
1066
|
+
ReturnType: viem.RpcUncle | null;
|
|
1067
|
+
}, {
|
|
1068
|
+
Method: "eth_getUncleCountByBlockHash";
|
|
1069
|
+
Parameters: [hash: viem.Hash];
|
|
1070
|
+
ReturnType: viem.Quantity;
|
|
1071
|
+
}, {
|
|
1072
|
+
Method: "eth_getUncleCountByBlockNumber";
|
|
1073
|
+
Parameters: [block: viem.RpcBlockNumber | viem.BlockTag];
|
|
1074
|
+
ReturnType: viem.Quantity;
|
|
1075
|
+
}, {
|
|
1076
|
+
Method: "eth_maxPriorityFeePerGas";
|
|
1077
|
+
Parameters?: undefined;
|
|
1078
|
+
ReturnType: viem.Quantity;
|
|
1079
|
+
}, {
|
|
1080
|
+
Method: "eth_newBlockFilter";
|
|
1081
|
+
Parameters?: undefined;
|
|
1082
|
+
ReturnType: viem.Quantity;
|
|
1083
|
+
}, {
|
|
1084
|
+
Method: "eth_newFilter";
|
|
1085
|
+
Parameters: [filter: {
|
|
1086
|
+
fromBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
1087
|
+
toBlock?: viem.RpcBlockNumber | viem.BlockTag | undefined;
|
|
1088
|
+
address?: Address | Address[] | undefined;
|
|
1089
|
+
topics?: viem.LogTopic[] | undefined;
|
|
1090
|
+
}];
|
|
1091
|
+
ReturnType: viem.Quantity;
|
|
1092
|
+
}, {
|
|
1093
|
+
Method: "eth_newPendingTransactionFilter";
|
|
1094
|
+
Parameters?: undefined;
|
|
1095
|
+
ReturnType: viem.Quantity;
|
|
1096
|
+
}, {
|
|
1097
|
+
Method: "eth_protocolVersion";
|
|
1098
|
+
Parameters?: undefined;
|
|
1099
|
+
ReturnType: string;
|
|
1100
|
+
}, {
|
|
1101
|
+
Method: "eth_sendRawTransaction";
|
|
1102
|
+
Parameters: [signedTransaction: viem.Hex];
|
|
1103
|
+
ReturnType: viem.Hash;
|
|
1104
|
+
}, {
|
|
1105
|
+
Method: "eth_uninstallFilter";
|
|
1106
|
+
Parameters: [filterId: viem.Quantity];
|
|
1107
|
+
ReturnType: boolean;
|
|
1108
|
+
}, ...{
|
|
1109
|
+
Method: string;
|
|
1110
|
+
Parameters?: unknown | undefined;
|
|
1111
|
+
ReturnType: unknown;
|
|
1112
|
+
}[]], viem.Prettify<client> & (viem.PublicActions<HttpTransport, Chain> extends {
|
|
1113
|
+
[x: string]: unknown;
|
|
1114
|
+
account?: undefined;
|
|
1115
|
+
batch?: undefined;
|
|
1116
|
+
cacheTime?: undefined;
|
|
1117
|
+
ccipRead?: undefined;
|
|
1118
|
+
chain?: undefined;
|
|
1119
|
+
key?: undefined;
|
|
1120
|
+
name?: undefined;
|
|
1121
|
+
pollingInterval?: undefined;
|
|
1122
|
+
request?: undefined;
|
|
1123
|
+
transport?: undefined;
|
|
1124
|
+
type?: undefined;
|
|
1125
|
+
uid?: undefined;
|
|
1126
|
+
} ? viem.PublicActions<HttpTransport, Chain> : unknown)>;
|
|
1127
|
+
};
|
|
1128
|
+
type PublicClient = ReturnType<typeof getPublicClient>;
|
|
1129
|
+
|
|
514
1130
|
declare class Embedded1193Provider extends EventEmitter implements EIP1193Provider {
|
|
515
1131
|
walletProxy: EmbeddedWalletProxy;
|
|
516
1132
|
/** Address of the embedded wallet that this provider corresponds to. */
|
|
517
1133
|
address: string;
|
|
518
|
-
|
|
1134
|
+
publicClient: PublicClient;
|
|
519
1135
|
chainId: number;
|
|
520
1136
|
rpcConfig: RpcConfig;
|
|
521
1137
|
chains: Chain[];
|
|
@@ -559,6 +1175,31 @@ declare class Embedded1193Provider extends EventEmitter implements EIP1193Provid
|
|
|
559
1175
|
request(args: RequestArguments): Promise<unknown>;
|
|
560
1176
|
}
|
|
561
1177
|
|
|
1178
|
+
declare global {
|
|
1179
|
+
interface Window {
|
|
1180
|
+
ethereum?: any;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
/**
|
|
1184
|
+
* @hidden
|
|
1185
|
+
*
|
|
1186
|
+
* The PrivyProxyProvider adds a middleware layer on top of the underlying wallet provider.
|
|
1187
|
+
* */
|
|
1188
|
+
declare class PrivyProxyProvider implements EIP1193Provider {
|
|
1189
|
+
rpcTimeoutDuration: number;
|
|
1190
|
+
walletProvider?: EIP1193Provider;
|
|
1191
|
+
private _subscriptions;
|
|
1192
|
+
constructor(walletProvider?: EIP1193Provider, rpcTimeoutDuration?: number);
|
|
1193
|
+
on(eventName: string, listener: (...args: any[]) => void): any;
|
|
1194
|
+
request(request: {
|
|
1195
|
+
method: string;
|
|
1196
|
+
params?: any[] | undefined;
|
|
1197
|
+
}): Promise<any>;
|
|
1198
|
+
removeListener: (eventName: string | symbol, listener: (...args: any[]) => void) => any;
|
|
1199
|
+
walletTimeout: (error?: WalletTimeoutError, timeoutMs?: number) => Promise<string[]>;
|
|
1200
|
+
setWalletProvider: (provider: EIP1193Provider) => void;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
562
1203
|
declare abstract class EthereumWalletConnector extends WalletConnector {
|
|
563
1204
|
wallets: BaseConnectedEthereumWallet[];
|
|
564
1205
|
chains: Chain[];
|
|
@@ -850,46 +1491,6 @@ interface PrivyInterface {
|
|
|
850
1491
|
* @returns Promise for the user's access token as a string if they are authenticated, null if they are unauthenticated.
|
|
851
1492
|
*/
|
|
852
1493
|
getAccessToken: () => Promise<string | null>;
|
|
853
|
-
/**
|
|
854
|
-
* @deprecated **Deprecated**: This method will be deprecated and should be replaced by calling `getEthereumProvider`
|
|
855
|
-
* directly on the `ConnectedWallet` objects returned by the `useWallets` hook, e.g.
|
|
856
|
-
*
|
|
857
|
-
* ```tsx
|
|
858
|
-
* const {wallets} = useWallets();
|
|
859
|
-
* const provider = await wallets[0].getEthereumProvider();
|
|
860
|
-
* ```
|
|
861
|
-
*
|
|
862
|
-
*
|
|
863
|
-
* Gets an [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193)-compatible provider from the user's wallet, if the user has connected one.
|
|
864
|
-
*
|
|
865
|
-
* You may then use the Ethereum Javascript API syntax to send JSON-RPC requests to the user's wallet.
|
|
866
|
-
*/
|
|
867
|
-
getEthereumProvider: () => EIP1193Provider;
|
|
868
|
-
/**
|
|
869
|
-
* @deprecated **Deprecated**: This method will be deprecated and should be replaced by calling `getEthersProvider`
|
|
870
|
-
* directly on the `ConnectedWallet` objects returned by the `useWallets` hook, e.g.
|
|
871
|
-
*
|
|
872
|
-
* ```tsx
|
|
873
|
-
* const {wallets} = useWallets();
|
|
874
|
-
* const provider = await wallets[0].getEthersProvider();
|
|
875
|
-
* ```
|
|
876
|
-
*
|
|
877
|
-
* Get an [ethers.js](https://docs.ethers.io/v5/)-compatible provider from the user's wallet, if the user has connected one.
|
|
878
|
-
*
|
|
879
|
-
*/
|
|
880
|
-
getEthersProvider: () => Web3Provider;
|
|
881
|
-
/**
|
|
882
|
-
* @deprecated **Deprecated**: This feature will be deprecated and should be replaced by calling `getWeb3jsProvider`
|
|
883
|
-
* directly on the `ConnectedWallet` objects returned by the `useWallets` hook, e.g.
|
|
884
|
-
*
|
|
885
|
-
* ```tsx
|
|
886
|
-
* const {wallets} = useWallets();
|
|
887
|
-
* const provider = await wallets[0].getWeb3jsProvider();
|
|
888
|
-
* ```
|
|
889
|
-
*
|
|
890
|
-
* Get a [web3.js](https://web3js.readthedocs.io/en/v1.8.0/)-compatible provider from the user's wallet, if the user has connected one.
|
|
891
|
-
*/
|
|
892
|
-
getWeb3jsProvider: () => AbstractProvider;
|
|
893
1494
|
/**
|
|
894
1495
|
* @deprecated **Deprecated**: This feature will be removed and should be replaced by the
|
|
895
1496
|
* `useWallets` hook.
|
|
@@ -1219,7 +1820,9 @@ interface PrivyInterface {
|
|
|
1219
1820
|
* embedded wallets or multiple HD embedded wallets for the same user. Defaults to the user's embedded wallet at HD index 0.
|
|
1220
1821
|
* @returns Promise for the transaction's {@link TransactionReceipt}
|
|
1221
1822
|
*/
|
|
1222
|
-
sendTransaction: (data: UnsignedTransactionRequest, uiOptions?: SendTransactionModalUIOptions, fundWalletConfig?: FundWalletConfig, address?: string) => Promise<
|
|
1823
|
+
sendTransaction: (data: UnsignedTransactionRequest, uiOptions?: SendTransactionModalUIOptions, fundWalletConfig?: FundWalletConfig, address?: string) => Promise<{
|
|
1824
|
+
hash: `0x${string}`;
|
|
1825
|
+
}>;
|
|
1223
1826
|
/**
|
|
1224
1827
|
* Prompts a user to send a transaction using their embedded wallet.
|
|
1225
1828
|
*
|
|
@@ -1233,11 +1836,8 @@ interface PrivyInterface {
|
|
|
1233
1836
|
* @param connection {Connection} connection to the Solana network
|
|
1234
1837
|
* @param uiOptions {@link SendTransactionModalUIOptions} (optional) UI options to customize the transaction request modal
|
|
1235
1838
|
* @param transactionOptions {@link SendTransactionOptions} (optional) Transaction options to customize the transaction request
|
|
1236
|
-
* @param fundWalletConfig {@link SolanaFundingConfig} (optional) Funding configuration to specify cluster and funding amount (if enabled), in the case of insufficient funds
|
|
1237
|
-
* @param transactingWalletAddress {optional} address for the embedded wallet signing the message. You should ONLY set this parameter if using multiple
|
|
1238
|
-
* Solana HD embedded wallets for the same user. Defaults to the user's embedded wallet at HD index 0.
|
|
1239
1839
|
*/
|
|
1240
|
-
sendSolanaTransaction: (transaction: SupportedSolanaTransaction, connection: Connection, uiOptions?: SendTransactionModalUIOptions, transactionOptions?: SendTransactionOptions
|
|
1840
|
+
sendSolanaTransaction: (transaction: SupportedSolanaTransaction, connection: Connection, uiOptions?: SendTransactionModalUIOptions, transactionOptions?: SendTransactionOptions) => Promise<SolanaTransactionReceipt>;
|
|
1241
1841
|
/**
|
|
1242
1842
|
* Shows the user a Privy modal, from which they can copy their embedded wallet's private
|
|
1243
1843
|
* key or seed phrase for easy export to another wallet client (e.g. MetaMask). The private key is loaded
|
|
@@ -2522,7 +3122,9 @@ declare function useSendTransaction(callbacks?: PrivyEvents['sendTransaction']):
|
|
|
2522
3122
|
/**
|
|
2523
3123
|
* Prompts a user to send a transaction using their embedded wallet.
|
|
2524
3124
|
*/
|
|
2525
|
-
sendTransaction: (data: UnsignedTransactionRequest, uiOptions?: SendTransactionModalUIOptions, fundWalletConfig?: FundWalletConfig, address?: string) => Promise<
|
|
3125
|
+
sendTransaction: (data: UnsignedTransactionRequest, uiOptions?: SendTransactionModalUIOptions, fundWalletConfig?: FundWalletConfig, address?: string) => Promise<{
|
|
3126
|
+
hash: `0x${string}`;
|
|
3127
|
+
}>;
|
|
2526
3128
|
};
|
|
2527
3129
|
|
|
2528
3130
|
/**
|
|
@@ -2538,7 +3140,7 @@ declare function useSendSolanaTransaction(callbacks?: PrivyEvents['sendSolanaTra
|
|
|
2538
3140
|
/**
|
|
2539
3141
|
* Prompts a user to send a transaction using their embedded wallet.
|
|
2540
3142
|
*/
|
|
2541
|
-
sendSolanaTransaction: (transaction: SupportedSolanaTransaction, connection: _solana_web3_js.Connection, uiOptions?: SendTransactionModalUIOptions, transactionOptions?: _solana_wallet_adapter_base.SendTransactionOptions
|
|
3143
|
+
sendSolanaTransaction: (transaction: SupportedSolanaTransaction, connection: _solana_web3_js.Connection, uiOptions?: SendTransactionModalUIOptions, transactionOptions?: _solana_wallet_adapter_base.SendTransactionOptions) => Promise<SolanaTransactionReceipt>;
|
|
2542
3144
|
};
|
|
2543
3145
|
|
|
2544
3146
|
/**
|
|
@@ -2837,4 +3439,4 @@ declare const LoginModal: ({ open }: {
|
|
|
2837
3439
|
open: boolean;
|
|
2838
3440
|
}) => react_jsx_runtime.JSX.Element;
|
|
2839
3441
|
|
|
2840
|
-
export {
|
|
3442
|
+
export { BaseConnectedWalletType, Captcha, ConnectWalletModalOptions, ConnectedSolanaWallet, ConnectedWallet, ConnectorManager, CustomAuthFlowState, EIP1193Provider, EthereumWalletConnector, FundWalletConfig, LoginModal, LoginModalOptions, LoginWithCode, MfaMethod, OAuthFlowState, OAuthProviderType, OAuthTokens, OtpFlowState, PasskeyFlowState, PrivyClient, PrivyClientConfig, PrivyEvents, type PrivyInterface, PrivyProvider, type PrivyProviderProps, DEFAULT_SUPPORTED_CHAINS as SUPPORTED_CHAINS, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, SolanaTransactionReceipt, SupportedSolanaTransaction, UnsignedTransactionRequest, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWallet, type UseLinkWithPasskey, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSms, type UseOAuthTokens, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, addPrivyRpcToChain, addRpcUrlOverrideToChain, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useExperimentalFarcasterSigner, useFarcasterSigner, useFundWallet, useGuestAccounts, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSms, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRegisterMfaListener, useSendSolanaTransaction, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignMessage, useSignTypedData, useToken, useUpdateAccount, useWallets };
|