@privy-io/react-auth 1.58.0 → 1.58.1-beta-20240304170528

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/index.d.ts CHANGED
@@ -2906,6 +2906,30 @@ declare function useCreateWallet(callbacks?: PrivyEvents['createWallet']): {
2906
2906
  createWallet: () => Promise<Wallet>;
2907
2907
  };
2908
2908
 
2909
+ /**
2910
+ * Allows you to fund a user's wallets.
2911
+ * You can access the fields and methods documented here via the {@link useFundWallet} hook.
2912
+ */
2913
+ interface UseFundWalletInterface {
2914
+ /**
2915
+ * Prompt the user to go through the fiat onramp flow and fund the specified wallet.
2916
+ *
2917
+ * This will open the modal with a prompt for the user to navigate to a third-party on-ramp provider.
2918
+ *
2919
+ * Once the user continues to the on-ramp flow, Privy will display the on-ramp status screen, and wait
2920
+ * for the transaction to complete.
2921
+ *
2922
+ * Note: Even after a successful funding, funds can take a few minutes to arrive in the user's wallet.
2923
+ *
2924
+ * The current supported provider is Moonpay.
2925
+ *
2926
+ * @param address {string} typed data payload to be signed
2927
+ * @param fundWalletConfig {@link FundWalletConfig} (optional) options to customize the wallet fund modal
2928
+ */
2929
+ fundWallet: (address: string, fundWalletConfig?: FundWalletConfig) => Promise<void>;
2930
+ }
2931
+ declare const useFundWallet: () => UseFundWalletInterface;
2932
+
2909
2933
  /**
2910
2934
  * Use this hook to send a transaction using the embedded wallet and to attach callbacks for success and errors.
2911
2935
  * Note that the callbacks will only fire for explicit sendTransaction calls from the Privy SDK.
@@ -3044,4 +3068,4 @@ declare function addRpcUrlOverrideToChain(chain: Chain, rpcUrl: string): {
3044
3068
  testnet?: boolean | undefined;
3045
3069
  };
3046
3070
 
3047
- export { Apple, AppleOAuthWithMetadata, AsExternalProvider, CallbackError, Captcha, ConnectedWallet, ConnectorManager, ContractUIOptions, Discord, DiscordOAuthWithMetadata, EIP1193Provider, Email, EmailWithMetadata, Farcaster, FarcasterWithMetadata, FundWalletConfig, Github, GithubOAuthWithMetadata, Google, GoogleOAuthWithMetadata, LinkedIn, LinkedInOAuthWithMetadata, LoginMethodOrderOption, LoginWithCode, MessageTypes, MfaMethod, MoonpayConfig, MoonpayCurrencyCode, MoonpayPaymentMethod, Phone, PhoneWithMetadata, PriceDisplayOptions, PrivyClient, PrivyClientConfig, PrivyEvents, PrivyInterface, PrivyProvider, PrivyProviderProps, PrivyProxyProvider, Quantity, DEFAULT_SUPPORTED_CHAINS as SUPPORTED_CHAINS, SendCodeToEmail, SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, Tiktok, TiktokOAuthWithMetadata, TransactionLog, TransactionReceipt, TransactionUIOptions, Twitter, TwitterOAuthWithMetadata, TypedMessage, UnsignedTransactionRequest, UseLoginWithEmail, UseLoginWithSms, UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, WalletWithMetadata, addRpcUrlOverrideToChain, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getAccessToken, useConnectWallet, useCreateWallet, useLogin, useLoginWithEmail, useLoginWithSms, useLogout, useMfa, useMfaEnrollment, useModalStatus, usePrivy, useRegisterMfaListener, useSendTransaction, useSetWalletPassword, useSignMessage, useSignTypedData, useToken, useWallets };
3071
+ export { Apple, AppleOAuthWithMetadata, AsExternalProvider, CallbackError, Captcha, ConnectedWallet, ConnectorManager, ContractUIOptions, Discord, DiscordOAuthWithMetadata, EIP1193Provider, Email, EmailWithMetadata, Farcaster, FarcasterWithMetadata, FundWalletConfig, Github, GithubOAuthWithMetadata, Google, GoogleOAuthWithMetadata, LinkedIn, LinkedInOAuthWithMetadata, LoginMethodOrderOption, LoginWithCode, MessageTypes, MfaMethod, MoonpayConfig, MoonpayCurrencyCode, MoonpayPaymentMethod, Phone, PhoneWithMetadata, PriceDisplayOptions, PrivyClient, PrivyClientConfig, PrivyEvents, PrivyInterface, PrivyProvider, PrivyProviderProps, PrivyProxyProvider, Quantity, DEFAULT_SUPPORTED_CHAINS as SUPPORTED_CHAINS, SendCodeToEmail, SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, Tiktok, TiktokOAuthWithMetadata, TransactionLog, TransactionReceipt, TransactionUIOptions, Twitter, TwitterOAuthWithMetadata, TypedMessage, UnsignedTransactionRequest, UseLoginWithEmail, UseLoginWithSms, UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, WalletWithMetadata, addRpcUrlOverrideToChain, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getAccessToken, useConnectWallet, useCreateWallet, useFundWallet, useLogin, useLoginWithEmail, useLoginWithSms, useLogout, useMfa, useMfaEnrollment, useModalStatus, usePrivy, useRegisterMfaListener, useSendTransaction, useSetWalletPassword, useSignMessage, useSignTypedData, useToken, useWallets };