@privy-io/react-auth 2.7.0 → 2.7.2
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/farcaster.js +1 -1
- package/dist/cjs/{frame-Mqj2ph9n.js → frame-DIECoMyK.js} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/internal-context-Z2Asu_e_.js +1 -0
- package/dist/cjs/privy-provider-CRh83ztH.js +27 -0
- package/dist/cjs/{smart-wallets-C7PSePsj.js → smart-wallets-DTEjSVDG.js} +1 -1
- package/dist/cjs/smart-wallets.js +1 -1
- package/dist/cjs/solana.js +1 -1
- package/dist/cjs/ui.js +1 -1
- package/dist/cjs/{useActiveWallet-ZMzj2yZK.js → useActiveWallet-w-uaXTaQ.js} +1 -1
- package/dist/cjs/{useFundWallet-B-le1Hwp.js → useFundWallet-Be6Xcbzi.js} +1 -1
- package/dist/dts/farcaster.d.mts +2 -2
- package/dist/dts/farcaster.d.ts +2 -2
- package/dist/dts/index.d.mts +20 -122
- package/dist/dts/index.d.ts +20 -122
- package/dist/dts/smart-wallets.d.mts +3 -3
- package/dist/dts/smart-wallets.d.ts +3 -3
- package/dist/dts/solana.d.mts +5 -5
- package/dist/dts/solana.d.ts +5 -5
- package/dist/dts/{types-Bv6KFBSe.d.mts → types-Cq3xKsys.d.mts} +3 -195
- package/dist/dts/{types-Bv6KFBSe.d.ts → types-Cq3xKsys.d.ts} +3 -195
- package/dist/dts/ui.d.mts +3 -3
- package/dist/dts/ui.d.ts +3 -3
- package/dist/dts/{useSolanaWallets-DmfTxIs8.d.mts → useSolanaWallets-BADh6ZyK.d.mts} +2 -1
- package/dist/dts/{useSolanaWallets-DmfTxIs8.d.ts → useSolanaWallets-BADh6ZyK.d.ts} +2 -1
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/farcaster.mjs +1 -1
- package/dist/esm/{frame-BqfuK5mX.mjs → frame-Df-urdO7.mjs} +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/{internal-context-cnN4FGtP.mjs → internal-context-VSJVgTzy.mjs} +1 -1
- package/dist/esm/privy-provider-Bdp7T8ta.mjs +27 -0
- package/dist/esm/{smart-wallets-CD4dnxap.mjs → smart-wallets-BpSOJT8g.mjs} +1 -1
- package/dist/esm/smart-wallets.mjs +1 -1
- package/dist/esm/solana.mjs +1 -1
- package/dist/esm/ui.mjs +2 -2
- package/dist/esm/{useActiveWallet-BX_Fj6ki.mjs → useActiveWallet-BNKxAK-E.mjs} +1 -1
- package/dist/esm/{useFundWallet-C43hxi7R.mjs → useFundWallet-BZzm1dvU.mjs} +1 -1
- package/package.json +6 -5
- package/dist/cjs/internal-context-D_DHIn45.js +0 -1
- package/dist/cjs/privy-provider-BZuQMAQL.js +0 -27
- package/dist/esm/privy-provider-CPOch3uT.mjs +0 -27
package/dist/dts/index.d.mts
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { MouseEvent } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { l as WalletClientType, d as UserRecoveryMethod, m as PrivyFarcasterSignerInitResponse, n as MfaSubmitArgs, E as EthereumRpcRequestType, o as SolanaRpcRequestType, p as EthereumRpcResponseType, q as SolanaRpcResponseType, r as PrivyClientConfig, s as EIP1193Provider, u as EntropyIdVerifier$1, v as RequestArguments, w as WalletTimeoutError, x as WalletConnector, B as BaseConnectedEthereumWallet, y as ConnectedWalletMetadata, z as ConnectorType, A as WalletListEntry, D as ExternalWalletsConfig, G as BaseConnectedWallet, k as SolanaWalletConnector, U as User, H as ConnectWalletModalOptions, I as LoginModalOptions, g as CreateWalletOptions, W as Wallet, J as SetWalletRecoveryOptions, i as SignMessageModalUIOptions, K as SignTypedDataParams, M as MfaMethod, N as UnsignedTransactionRequest, h as SendTransactionModalUIOptions, Q as FundWalletConfig, T as ConnectedWallet, O as OAuthTokens, V as CrossAppProviderDetails, X as OAuthProviderType, Y as MoonpaySignRequest, Z as MoonpaySignResponse, _ as SmartWalletConfig, a as LoginMethod, $ as SiweWalletMetadata, a0 as TelegramAuthResult, a1 as TelegramWebAppData, a2 as OAuthUserInfo, a3 as OAuthFlowState, a4 as LoginWithCode, a5 as OtpFlowState, a6 as PasskeyFlowState, a7 as SiweFlowState, a8 as UnsignedTransactionRequestWithChainId, a9 as BaseConnectedWalletType, C as ConnectedSolanaWallet, aa as CustomAuthFlowState, ab as TelegramAuthFlowState } from './types-Cq3xKsys.js';
|
|
4
|
+
export { au as Apple, aF as AppleOAuthWithMetadata, aN as ContractUIOptions, ax as CrossAppAccount, aI as CrossAppAccountWithMetadata, ar as Discord, aB as DiscordOAuthWithMetadata, aK as Email, am as EmailWithMetadata, aR as Farcaster, aG as FarcasterWithMetadata, as as Github, aC as GithubOAuthWithMetadata, ap as Google, az as GoogleOAuthWithMetadata, ay as LinkedAccountType, b as LinkedAccountWithMetadata, at as LinkedIn, aE as LinkedInOAuthWithMetadata, aT as LoginMethodOrderOption, ad as MessageTypes, af as MoonpayConfig, ag as MoonpayCurrencyCode, aP as MoonpayFundingConfig, ah as MoonpayPaymentMethod, aO as NativeFundingConfig, al as NonEmptyArray, aS as Passkey, aJ as PasskeyWithMetadata, aL as Phone, an as PhoneWithMetadata, aQ as PriceDisplayOptions, P as PrivyErrorCode, ai as Quantity, ae as SmartWallet, f as SolanaCluster, j as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, aw as Telegram, aH as TelegramWithMetadata, av as Tiktok, aD as TiktokOAuthWithMetadata, aj as TransactionLog, ak as TransactionReceipt, aM as TransactionUIOptions, aq as Twitter, aA as TwitterOAuthWithMetadata, ac as TypedMessage, ao as WalletWithMetadata } from './types-Cq3xKsys.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { TurnstileProps } from '@marsidev/react-turnstile';
|
|
7
7
|
import EventEmitter from 'eventemitter3';
|
|
8
8
|
import { Store, EIP6963ProviderDetail } from 'mipd';
|
|
9
|
+
import { Chain, RpcConfig } from '@privy-io/js-sdk-core';
|
|
10
|
+
export { DEFAULT_SUPPORTED_CHAINS as SUPPORTED_CHAINS, addPrivyRpcToChain, addRpcUrlOverrideToChain } from '@privy-io/js-sdk-core';
|
|
9
11
|
import { PasskeyAuthenticateInputType, CustomMetadataType, SmartWalletType, PrivyCoinbaseOnRampInitInput, PrivyCoinbaseOnRampInitResponse, PrivyCoinbaseOnRampStatusResponse, PrivyTransactionScanningInputType, PrivyTransactionScanningResponseType } from '@privy-io/public-api';
|
|
10
12
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
11
|
-
import * as viem__types_actions_public_simulateCalls from 'viem/_types/actions/public/simulateCalls';
|
|
12
|
-
import * as viem__types_actions_public_simulateBlocks from 'viem/_types/actions/public/simulateBlocks';
|
|
13
|
-
import * as viem__types_actions_public_createAccessList from 'viem/_types/actions/public/createAccessList';
|
|
14
13
|
import * as viem from 'viem';
|
|
15
14
|
import { Address, HttpTransport } from 'viem';
|
|
16
15
|
import * as _simplewebauthn_types from '@simplewebauthn/types';
|
|
17
16
|
import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
|
|
18
17
|
import { Cluster } from '@solana/web3.js';
|
|
19
18
|
import { FetchOptions } from 'ofetch';
|
|
20
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
21
|
-
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
19
|
+
import { P as PrivyEvents } from './useSolanaWallets-BADh6ZyK.js';
|
|
20
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-BADh6ZyK.js';
|
|
22
21
|
import '@solana/wallet-adapter-base';
|
|
23
|
-
import '@privy-io/js-sdk-core';
|
|
24
22
|
import '@metamask/eth-sig-util';
|
|
25
23
|
|
|
26
|
-
declare const DEFAULT_SUPPORTED_CHAINS: readonly [Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain];
|
|
27
|
-
|
|
28
24
|
type MobileWalletConfig = {
|
|
29
25
|
client: WalletClientType;
|
|
30
26
|
name: string;
|
|
@@ -291,7 +287,7 @@ type EthereumWalletCreateRequestDataType = BaseWalletCreateRequestDataType & Bas
|
|
|
291
287
|
type WalletCreateResponseDataType = {
|
|
292
288
|
address: string;
|
|
293
289
|
};
|
|
294
|
-
type SolanaWalletCreateRequestDataType = BaseWalletCreateRequestDataType & {
|
|
290
|
+
type SolanaWalletCreateRequestDataType = BaseWalletCreateRequestDataType & BaseWalletCreateWithUserControlledRecoveryDataType & {
|
|
295
291
|
/**
|
|
296
292
|
* If a user has an existing Ethereum embedded wallet when creating the Solana embedded wallet, that address
|
|
297
293
|
* MUST be passed in this field. Our iframe will use this address to derive the Solana embedded wallet from the
|
|
@@ -751,7 +747,7 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
751
747
|
type: string;
|
|
752
748
|
uid: string;
|
|
753
749
|
call: (parameters: viem.CallParameters<Chain>) => Promise<viem.CallReturnType>;
|
|
754
|
-
createAccessList: (parameters:
|
|
750
|
+
createAccessList: (parameters: viem.CreateAccessListParameters<Chain>) => Promise<viem.CreateAccessListReturnType>;
|
|
755
751
|
createBlockFilter: () => Promise<viem.CreateBlockFilterReturnType>;
|
|
756
752
|
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>>;
|
|
757
753
|
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>>;
|
|
@@ -792,9 +788,9 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
792
788
|
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>>;
|
|
793
789
|
readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, const args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
|
|
794
790
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
795
|
-
simulate: <const calls extends readonly unknown[]>(args:
|
|
796
|
-
simulateBlocks: <const calls extends readonly unknown[]>(args:
|
|
797
|
-
simulateCalls: <const calls extends readonly unknown[]>(args:
|
|
791
|
+
simulate: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
792
|
+
simulateBlocks: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
793
|
+
simulateCalls: <const calls extends readonly unknown[]>(args: viem.SimulateCallsParameters<calls>) => Promise<viem.SimulateCallsReturnType<calls>>;
|
|
798
794
|
simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, const 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>>;
|
|
799
795
|
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
800
796
|
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
@@ -2704,7 +2700,6 @@ declare class PrivyClient {
|
|
|
2704
2700
|
*/
|
|
2705
2701
|
private _getToken;
|
|
2706
2702
|
getSmartWalletsConfig(): Promise<SmartWalletConfig>;
|
|
2707
|
-
getServerConfig(): Promise<PrivyServerConfig>;
|
|
2708
2703
|
getUsdTokenPrice(chain: Chain): Promise<number | undefined>;
|
|
2709
2704
|
getUsdPriceForSol(): Promise<number | undefined>;
|
|
2710
2705
|
getSplTokenMetadata({ mintAddress, cluster }: {
|
|
@@ -3498,7 +3493,7 @@ declare const useSignAuthorization: () => {
|
|
|
3498
3493
|
contractAddress: `0x${string}`;
|
|
3499
3494
|
chainId?: number;
|
|
3500
3495
|
nonce?: number;
|
|
3501
|
-
|
|
3496
|
+
executor?: "self" | `0x${string}`;
|
|
3502
3497
|
}, options?: {
|
|
3503
3498
|
address?: string;
|
|
3504
3499
|
}) => Promise<{
|
|
@@ -3506,7 +3501,7 @@ declare const useSignAuthorization: () => {
|
|
|
3506
3501
|
s: `0x${string}`;
|
|
3507
3502
|
v: bigint;
|
|
3508
3503
|
yParity: number;
|
|
3509
|
-
|
|
3504
|
+
address: viem.Address;
|
|
3510
3505
|
chainId: number;
|
|
3511
3506
|
nonce: number;
|
|
3512
3507
|
} | {
|
|
@@ -3514,7 +3509,7 @@ declare const useSignAuthorization: () => {
|
|
|
3514
3509
|
s: `0x${string}`;
|
|
3515
3510
|
yParity: number;
|
|
3516
3511
|
v?: bigint | undefined;
|
|
3517
|
-
|
|
3512
|
+
address: viem.Address;
|
|
3518
3513
|
chainId: number;
|
|
3519
3514
|
nonce: number;
|
|
3520
3515
|
} | {
|
|
@@ -3522,7 +3517,7 @@ declare const useSignAuthorization: () => {
|
|
|
3522
3517
|
s: `0x${string}`;
|
|
3523
3518
|
v: bigint;
|
|
3524
3519
|
yParity: number;
|
|
3525
|
-
|
|
3520
|
+
address: viem.Address;
|
|
3526
3521
|
chainId: number;
|
|
3527
3522
|
nonce: number;
|
|
3528
3523
|
} | {
|
|
@@ -3530,7 +3525,7 @@ declare const useSignAuthorization: () => {
|
|
|
3530
3525
|
s: `0x${string}`;
|
|
3531
3526
|
yParity: number;
|
|
3532
3527
|
v?: bigint | undefined;
|
|
3533
|
-
|
|
3528
|
+
address: viem.Address;
|
|
3534
3529
|
chainId: number;
|
|
3535
3530
|
nonce: number;
|
|
3536
3531
|
} | {
|
|
@@ -3538,7 +3533,7 @@ declare const useSignAuthorization: () => {
|
|
|
3538
3533
|
s: `0x${string}`;
|
|
3539
3534
|
v: bigint;
|
|
3540
3535
|
yParity: number;
|
|
3541
|
-
|
|
3536
|
+
address: viem.Address;
|
|
3542
3537
|
chainId: number;
|
|
3543
3538
|
nonce: number;
|
|
3544
3539
|
} | {
|
|
@@ -3546,7 +3541,7 @@ declare const useSignAuthorization: () => {
|
|
|
3546
3541
|
s: `0x${string}`;
|
|
3547
3542
|
yParity: number;
|
|
3548
3543
|
v?: bigint | undefined;
|
|
3549
|
-
|
|
3544
|
+
address: viem.Address;
|
|
3550
3545
|
chainId: number;
|
|
3551
3546
|
nonce: number;
|
|
3552
3547
|
}>;
|
|
@@ -3691,7 +3686,7 @@ declare const useDelegatedActions: () => UseDelegatedActionsInterface;
|
|
|
3691
3686
|
*/
|
|
3692
3687
|
declare const useUser: () => {
|
|
3693
3688
|
user: User | null;
|
|
3694
|
-
refreshUser: () => Promise<User
|
|
3689
|
+
refreshUser: () => Promise<User>;
|
|
3695
3690
|
};
|
|
3696
3691
|
|
|
3697
3692
|
type UseLoginWithTelegram = {
|
|
@@ -3749,103 +3744,6 @@ interface UseHeadlessDelegatedActionsInterface {
|
|
|
3749
3744
|
}
|
|
3750
3745
|
declare const useHeadlessDelegatedActions: () => UseHeadlessDelegatedActionsInterface;
|
|
3751
3746
|
|
|
3752
|
-
/**
|
|
3753
|
-
* Allows you to override the RPC url for the given chain
|
|
3754
|
-
*
|
|
3755
|
-
* @param chain {@link Chain} chain you want to modify
|
|
3756
|
-
* @param rpcUrl {@type string} rpc url you want to use for this chain
|
|
3757
|
-
* @returns modified chain object
|
|
3758
|
-
*
|
|
3759
|
-
* @example
|
|
3760
|
-
*
|
|
3761
|
-
* ```ts
|
|
3762
|
-
* import { mainnet } from 'viem/chains';
|
|
3763
|
-
* import { addRpcUrlOverrideToChain } from '@privy-io/react-auth';
|
|
3764
|
-
*
|
|
3765
|
-
* const mainnetOverride = addRpcUrlOverrideToChain(mainnet, INSERT_MAINNET_OVERRIDE_URL);
|
|
3766
|
-
* ```
|
|
3767
|
-
*/
|
|
3768
|
-
declare function addRpcUrlOverrideToChain(chain: Chain, rpcUrl: string): {
|
|
3769
|
-
rpcUrls: {
|
|
3770
|
-
privyWalletOverride: {
|
|
3771
|
-
http: string[];
|
|
3772
|
-
};
|
|
3773
|
-
default: {
|
|
3774
|
-
http: readonly string[];
|
|
3775
|
-
webSocket?: readonly string[];
|
|
3776
|
-
};
|
|
3777
|
-
} | {
|
|
3778
|
-
privyWalletOverride: {
|
|
3779
|
-
http: string[];
|
|
3780
|
-
};
|
|
3781
|
-
default: {
|
|
3782
|
-
http: readonly string[];
|
|
3783
|
-
webSocket?: readonly string[];
|
|
3784
|
-
};
|
|
3785
|
-
};
|
|
3786
|
-
id: number;
|
|
3787
|
-
name: string;
|
|
3788
|
-
network?: string;
|
|
3789
|
-
nativeCurrency: {
|
|
3790
|
-
name: string;
|
|
3791
|
-
symbol: string;
|
|
3792
|
-
decimals: number;
|
|
3793
|
-
};
|
|
3794
|
-
blockExplorers?: {
|
|
3795
|
-
[key: string]: {
|
|
3796
|
-
name: string;
|
|
3797
|
-
url: string;
|
|
3798
|
-
};
|
|
3799
|
-
default: {
|
|
3800
|
-
name: string;
|
|
3801
|
-
url: string;
|
|
3802
|
-
};
|
|
3803
|
-
};
|
|
3804
|
-
testnet?: boolean;
|
|
3805
|
-
};
|
|
3806
|
-
declare function addPrivyRpcToChain(chain: Chain, rpcUrl: string): {
|
|
3807
|
-
rpcUrls: {
|
|
3808
|
-
privy: {
|
|
3809
|
-
http: string[];
|
|
3810
|
-
};
|
|
3811
|
-
default: {
|
|
3812
|
-
http: readonly string[];
|
|
3813
|
-
webSocket?: readonly string[];
|
|
3814
|
-
};
|
|
3815
|
-
} | {
|
|
3816
|
-
privy: {
|
|
3817
|
-
http: string[];
|
|
3818
|
-
};
|
|
3819
|
-
default: {
|
|
3820
|
-
http: readonly string[];
|
|
3821
|
-
webSocket?: readonly string[];
|
|
3822
|
-
};
|
|
3823
|
-
privyWalletOverride: {
|
|
3824
|
-
http: readonly string[];
|
|
3825
|
-
webSocket?: readonly string[];
|
|
3826
|
-
};
|
|
3827
|
-
};
|
|
3828
|
-
id: number;
|
|
3829
|
-
name: string;
|
|
3830
|
-
network?: string;
|
|
3831
|
-
nativeCurrency: {
|
|
3832
|
-
name: string;
|
|
3833
|
-
symbol: string;
|
|
3834
|
-
decimals: number;
|
|
3835
|
-
};
|
|
3836
|
-
blockExplorers?: {
|
|
3837
|
-
[key: string]: {
|
|
3838
|
-
name: string;
|
|
3839
|
-
url: string;
|
|
3840
|
-
};
|
|
3841
|
-
default: {
|
|
3842
|
-
name: string;
|
|
3843
|
-
url: string;
|
|
3844
|
-
};
|
|
3845
|
-
};
|
|
3846
|
-
testnet?: boolean;
|
|
3847
|
-
};
|
|
3848
|
-
|
|
3849
3747
|
/**
|
|
3850
3748
|
* Get the embedded wallet for the user if they have one.
|
|
3851
3749
|
*
|
|
@@ -3858,4 +3756,4 @@ declare const LoginModal: ({ open }: {
|
|
|
3858
3756
|
open: boolean;
|
|
3859
3757
|
}) => react_jsx_runtime.JSX.Element;
|
|
3860
3758
|
|
|
3861
|
-
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,
|
|
3759
|
+
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, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, TelegramAuthFlowState, UnsignedTransactionRequest, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkWithPasskey, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSms, type UseLoginWithTelegram, type UseOAuthTokens, type UseRecoverEmbeddedWalletInterface, type UseSignupWithPasskey, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useToken, useUpdateAccount, useUser, useWallets };
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { MouseEvent } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { l as WalletClientType, d as UserRecoveryMethod, m as PrivyFarcasterSignerInitResponse, n as MfaSubmitArgs, E as EthereumRpcRequestType, o as SolanaRpcRequestType, p as EthereumRpcResponseType, q as SolanaRpcResponseType, r as PrivyClientConfig, s as EIP1193Provider, u as EntropyIdVerifier$1, v as RequestArguments, w as WalletTimeoutError, x as WalletConnector, B as BaseConnectedEthereumWallet, y as ConnectedWalletMetadata, z as ConnectorType, A as WalletListEntry, D as ExternalWalletsConfig, G as BaseConnectedWallet, k as SolanaWalletConnector, U as User, H as ConnectWalletModalOptions, I as LoginModalOptions, g as CreateWalletOptions, W as Wallet, J as SetWalletRecoveryOptions, i as SignMessageModalUIOptions, K as SignTypedDataParams, M as MfaMethod, N as UnsignedTransactionRequest, h as SendTransactionModalUIOptions, Q as FundWalletConfig, T as ConnectedWallet, O as OAuthTokens, V as CrossAppProviderDetails, X as OAuthProviderType, Y as MoonpaySignRequest, Z as MoonpaySignResponse, _ as SmartWalletConfig, a as LoginMethod, $ as SiweWalletMetadata, a0 as TelegramAuthResult, a1 as TelegramWebAppData, a2 as OAuthUserInfo, a3 as OAuthFlowState, a4 as LoginWithCode, a5 as OtpFlowState, a6 as PasskeyFlowState, a7 as SiweFlowState, a8 as UnsignedTransactionRequestWithChainId, a9 as BaseConnectedWalletType, C as ConnectedSolanaWallet, aa as CustomAuthFlowState, ab as TelegramAuthFlowState } from './types-Cq3xKsys.js';
|
|
4
|
+
export { au as Apple, aF as AppleOAuthWithMetadata, aN as ContractUIOptions, ax as CrossAppAccount, aI as CrossAppAccountWithMetadata, ar as Discord, aB as DiscordOAuthWithMetadata, aK as Email, am as EmailWithMetadata, aR as Farcaster, aG as FarcasterWithMetadata, as as Github, aC as GithubOAuthWithMetadata, ap as Google, az as GoogleOAuthWithMetadata, ay as LinkedAccountType, b as LinkedAccountWithMetadata, at as LinkedIn, aE as LinkedInOAuthWithMetadata, aT as LoginMethodOrderOption, ad as MessageTypes, af as MoonpayConfig, ag as MoonpayCurrencyCode, aP as MoonpayFundingConfig, ah as MoonpayPaymentMethod, aO as NativeFundingConfig, al as NonEmptyArray, aS as Passkey, aJ as PasskeyWithMetadata, aL as Phone, an as PhoneWithMetadata, aQ as PriceDisplayOptions, P as PrivyErrorCode, ai as Quantity, ae as SmartWallet, f as SolanaCluster, j as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, aw as Telegram, aH as TelegramWithMetadata, av as Tiktok, aD as TiktokOAuthWithMetadata, aj as TransactionLog, ak as TransactionReceipt, aM as TransactionUIOptions, aq as Twitter, aA as TwitterOAuthWithMetadata, ac as TypedMessage, ao as WalletWithMetadata } from './types-Cq3xKsys.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { TurnstileProps } from '@marsidev/react-turnstile';
|
|
7
7
|
import EventEmitter from 'eventemitter3';
|
|
8
8
|
import { Store, EIP6963ProviderDetail } from 'mipd';
|
|
9
|
+
import { Chain, RpcConfig } from '@privy-io/js-sdk-core';
|
|
10
|
+
export { DEFAULT_SUPPORTED_CHAINS as SUPPORTED_CHAINS, addPrivyRpcToChain, addRpcUrlOverrideToChain } from '@privy-io/js-sdk-core';
|
|
9
11
|
import { PasskeyAuthenticateInputType, CustomMetadataType, SmartWalletType, PrivyCoinbaseOnRampInitInput, PrivyCoinbaseOnRampInitResponse, PrivyCoinbaseOnRampStatusResponse, PrivyTransactionScanningInputType, PrivyTransactionScanningResponseType } from '@privy-io/public-api';
|
|
10
12
|
import * as viem__types_actions_siwe_verifySiweMessage from 'viem/_types/actions/siwe/verifySiweMessage';
|
|
11
|
-
import * as viem__types_actions_public_simulateCalls from 'viem/_types/actions/public/simulateCalls';
|
|
12
|
-
import * as viem__types_actions_public_simulateBlocks from 'viem/_types/actions/public/simulateBlocks';
|
|
13
|
-
import * as viem__types_actions_public_createAccessList from 'viem/_types/actions/public/createAccessList';
|
|
14
13
|
import * as viem from 'viem';
|
|
15
14
|
import { Address, HttpTransport } from 'viem';
|
|
16
15
|
import * as _simplewebauthn_types from '@simplewebauthn/types';
|
|
17
16
|
import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
|
|
18
17
|
import { Cluster } from '@solana/web3.js';
|
|
19
18
|
import { FetchOptions } from 'ofetch';
|
|
20
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
21
|
-
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
19
|
+
import { P as PrivyEvents } from './useSolanaWallets-BADh6ZyK.js';
|
|
20
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-BADh6ZyK.js';
|
|
22
21
|
import '@solana/wallet-adapter-base';
|
|
23
|
-
import '@privy-io/js-sdk-core';
|
|
24
22
|
import '@metamask/eth-sig-util';
|
|
25
23
|
|
|
26
|
-
declare const DEFAULT_SUPPORTED_CHAINS: readonly [Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain, Chain];
|
|
27
|
-
|
|
28
24
|
type MobileWalletConfig = {
|
|
29
25
|
client: WalletClientType;
|
|
30
26
|
name: string;
|
|
@@ -291,7 +287,7 @@ type EthereumWalletCreateRequestDataType = BaseWalletCreateRequestDataType & Bas
|
|
|
291
287
|
type WalletCreateResponseDataType = {
|
|
292
288
|
address: string;
|
|
293
289
|
};
|
|
294
|
-
type SolanaWalletCreateRequestDataType = BaseWalletCreateRequestDataType & {
|
|
290
|
+
type SolanaWalletCreateRequestDataType = BaseWalletCreateRequestDataType & BaseWalletCreateWithUserControlledRecoveryDataType & {
|
|
295
291
|
/**
|
|
296
292
|
* If a user has an existing Ethereum embedded wallet when creating the Solana embedded wallet, that address
|
|
297
293
|
* MUST be passed in this field. Our iframe will use this address to derive the Solana embedded wallet from the
|
|
@@ -751,7 +747,7 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
751
747
|
type: string;
|
|
752
748
|
uid: string;
|
|
753
749
|
call: (parameters: viem.CallParameters<Chain>) => Promise<viem.CallReturnType>;
|
|
754
|
-
createAccessList: (parameters:
|
|
750
|
+
createAccessList: (parameters: viem.CreateAccessListParameters<Chain>) => Promise<viem.CreateAccessListReturnType>;
|
|
755
751
|
createBlockFilter: () => Promise<viem.CreateBlockFilterReturnType>;
|
|
756
752
|
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>>;
|
|
757
753
|
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>>;
|
|
@@ -792,9 +788,9 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
792
788
|
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>>;
|
|
793
789
|
readContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "pure" | "view">, const args extends viem.ContractFunctionArgs<abi, "pure" | "view", functionName>>(args: viem.ReadContractParameters<abi, functionName, args>) => Promise<viem.ReadContractReturnType<abi, functionName, args>>;
|
|
794
790
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
795
|
-
simulate: <const calls extends readonly unknown[]>(args:
|
|
796
|
-
simulateBlocks: <const calls extends readonly unknown[]>(args:
|
|
797
|
-
simulateCalls: <const calls extends readonly unknown[]>(args:
|
|
791
|
+
simulate: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
792
|
+
simulateBlocks: <const calls extends readonly unknown[]>(args: viem.SimulateBlocksParameters<calls>) => Promise<viem.SimulateBlocksReturnType<calls>>;
|
|
793
|
+
simulateCalls: <const calls extends readonly unknown[]>(args: viem.SimulateCallsParameters<calls>) => Promise<viem.SimulateCallsReturnType<calls>>;
|
|
798
794
|
simulateContract: <const abi extends viem.Abi | readonly unknown[], functionName extends viem.ContractFunctionName<abi, "nonpayable" | "payable">, const 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>>;
|
|
799
795
|
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
800
796
|
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
@@ -2704,7 +2700,6 @@ declare class PrivyClient {
|
|
|
2704
2700
|
*/
|
|
2705
2701
|
private _getToken;
|
|
2706
2702
|
getSmartWalletsConfig(): Promise<SmartWalletConfig>;
|
|
2707
|
-
getServerConfig(): Promise<PrivyServerConfig>;
|
|
2708
2703
|
getUsdTokenPrice(chain: Chain): Promise<number | undefined>;
|
|
2709
2704
|
getUsdPriceForSol(): Promise<number | undefined>;
|
|
2710
2705
|
getSplTokenMetadata({ mintAddress, cluster }: {
|
|
@@ -3498,7 +3493,7 @@ declare const useSignAuthorization: () => {
|
|
|
3498
3493
|
contractAddress: `0x${string}`;
|
|
3499
3494
|
chainId?: number;
|
|
3500
3495
|
nonce?: number;
|
|
3501
|
-
|
|
3496
|
+
executor?: "self" | `0x${string}`;
|
|
3502
3497
|
}, options?: {
|
|
3503
3498
|
address?: string;
|
|
3504
3499
|
}) => Promise<{
|
|
@@ -3506,7 +3501,7 @@ declare const useSignAuthorization: () => {
|
|
|
3506
3501
|
s: `0x${string}`;
|
|
3507
3502
|
v: bigint;
|
|
3508
3503
|
yParity: number;
|
|
3509
|
-
|
|
3504
|
+
address: viem.Address;
|
|
3510
3505
|
chainId: number;
|
|
3511
3506
|
nonce: number;
|
|
3512
3507
|
} | {
|
|
@@ -3514,7 +3509,7 @@ declare const useSignAuthorization: () => {
|
|
|
3514
3509
|
s: `0x${string}`;
|
|
3515
3510
|
yParity: number;
|
|
3516
3511
|
v?: bigint | undefined;
|
|
3517
|
-
|
|
3512
|
+
address: viem.Address;
|
|
3518
3513
|
chainId: number;
|
|
3519
3514
|
nonce: number;
|
|
3520
3515
|
} | {
|
|
@@ -3522,7 +3517,7 @@ declare const useSignAuthorization: () => {
|
|
|
3522
3517
|
s: `0x${string}`;
|
|
3523
3518
|
v: bigint;
|
|
3524
3519
|
yParity: number;
|
|
3525
|
-
|
|
3520
|
+
address: viem.Address;
|
|
3526
3521
|
chainId: number;
|
|
3527
3522
|
nonce: number;
|
|
3528
3523
|
} | {
|
|
@@ -3530,7 +3525,7 @@ declare const useSignAuthorization: () => {
|
|
|
3530
3525
|
s: `0x${string}`;
|
|
3531
3526
|
yParity: number;
|
|
3532
3527
|
v?: bigint | undefined;
|
|
3533
|
-
|
|
3528
|
+
address: viem.Address;
|
|
3534
3529
|
chainId: number;
|
|
3535
3530
|
nonce: number;
|
|
3536
3531
|
} | {
|
|
@@ -3538,7 +3533,7 @@ declare const useSignAuthorization: () => {
|
|
|
3538
3533
|
s: `0x${string}`;
|
|
3539
3534
|
v: bigint;
|
|
3540
3535
|
yParity: number;
|
|
3541
|
-
|
|
3536
|
+
address: viem.Address;
|
|
3542
3537
|
chainId: number;
|
|
3543
3538
|
nonce: number;
|
|
3544
3539
|
} | {
|
|
@@ -3546,7 +3541,7 @@ declare const useSignAuthorization: () => {
|
|
|
3546
3541
|
s: `0x${string}`;
|
|
3547
3542
|
yParity: number;
|
|
3548
3543
|
v?: bigint | undefined;
|
|
3549
|
-
|
|
3544
|
+
address: viem.Address;
|
|
3550
3545
|
chainId: number;
|
|
3551
3546
|
nonce: number;
|
|
3552
3547
|
}>;
|
|
@@ -3691,7 +3686,7 @@ declare const useDelegatedActions: () => UseDelegatedActionsInterface;
|
|
|
3691
3686
|
*/
|
|
3692
3687
|
declare const useUser: () => {
|
|
3693
3688
|
user: User | null;
|
|
3694
|
-
refreshUser: () => Promise<User
|
|
3689
|
+
refreshUser: () => Promise<User>;
|
|
3695
3690
|
};
|
|
3696
3691
|
|
|
3697
3692
|
type UseLoginWithTelegram = {
|
|
@@ -3749,103 +3744,6 @@ interface UseHeadlessDelegatedActionsInterface {
|
|
|
3749
3744
|
}
|
|
3750
3745
|
declare const useHeadlessDelegatedActions: () => UseHeadlessDelegatedActionsInterface;
|
|
3751
3746
|
|
|
3752
|
-
/**
|
|
3753
|
-
* Allows you to override the RPC url for the given chain
|
|
3754
|
-
*
|
|
3755
|
-
* @param chain {@link Chain} chain you want to modify
|
|
3756
|
-
* @param rpcUrl {@type string} rpc url you want to use for this chain
|
|
3757
|
-
* @returns modified chain object
|
|
3758
|
-
*
|
|
3759
|
-
* @example
|
|
3760
|
-
*
|
|
3761
|
-
* ```ts
|
|
3762
|
-
* import { mainnet } from 'viem/chains';
|
|
3763
|
-
* import { addRpcUrlOverrideToChain } from '@privy-io/react-auth';
|
|
3764
|
-
*
|
|
3765
|
-
* const mainnetOverride = addRpcUrlOverrideToChain(mainnet, INSERT_MAINNET_OVERRIDE_URL);
|
|
3766
|
-
* ```
|
|
3767
|
-
*/
|
|
3768
|
-
declare function addRpcUrlOverrideToChain(chain: Chain, rpcUrl: string): {
|
|
3769
|
-
rpcUrls: {
|
|
3770
|
-
privyWalletOverride: {
|
|
3771
|
-
http: string[];
|
|
3772
|
-
};
|
|
3773
|
-
default: {
|
|
3774
|
-
http: readonly string[];
|
|
3775
|
-
webSocket?: readonly string[];
|
|
3776
|
-
};
|
|
3777
|
-
} | {
|
|
3778
|
-
privyWalletOverride: {
|
|
3779
|
-
http: string[];
|
|
3780
|
-
};
|
|
3781
|
-
default: {
|
|
3782
|
-
http: readonly string[];
|
|
3783
|
-
webSocket?: readonly string[];
|
|
3784
|
-
};
|
|
3785
|
-
};
|
|
3786
|
-
id: number;
|
|
3787
|
-
name: string;
|
|
3788
|
-
network?: string;
|
|
3789
|
-
nativeCurrency: {
|
|
3790
|
-
name: string;
|
|
3791
|
-
symbol: string;
|
|
3792
|
-
decimals: number;
|
|
3793
|
-
};
|
|
3794
|
-
blockExplorers?: {
|
|
3795
|
-
[key: string]: {
|
|
3796
|
-
name: string;
|
|
3797
|
-
url: string;
|
|
3798
|
-
};
|
|
3799
|
-
default: {
|
|
3800
|
-
name: string;
|
|
3801
|
-
url: string;
|
|
3802
|
-
};
|
|
3803
|
-
};
|
|
3804
|
-
testnet?: boolean;
|
|
3805
|
-
};
|
|
3806
|
-
declare function addPrivyRpcToChain(chain: Chain, rpcUrl: string): {
|
|
3807
|
-
rpcUrls: {
|
|
3808
|
-
privy: {
|
|
3809
|
-
http: string[];
|
|
3810
|
-
};
|
|
3811
|
-
default: {
|
|
3812
|
-
http: readonly string[];
|
|
3813
|
-
webSocket?: readonly string[];
|
|
3814
|
-
};
|
|
3815
|
-
} | {
|
|
3816
|
-
privy: {
|
|
3817
|
-
http: string[];
|
|
3818
|
-
};
|
|
3819
|
-
default: {
|
|
3820
|
-
http: readonly string[];
|
|
3821
|
-
webSocket?: readonly string[];
|
|
3822
|
-
};
|
|
3823
|
-
privyWalletOverride: {
|
|
3824
|
-
http: readonly string[];
|
|
3825
|
-
webSocket?: readonly string[];
|
|
3826
|
-
};
|
|
3827
|
-
};
|
|
3828
|
-
id: number;
|
|
3829
|
-
name: string;
|
|
3830
|
-
network?: string;
|
|
3831
|
-
nativeCurrency: {
|
|
3832
|
-
name: string;
|
|
3833
|
-
symbol: string;
|
|
3834
|
-
decimals: number;
|
|
3835
|
-
};
|
|
3836
|
-
blockExplorers?: {
|
|
3837
|
-
[key: string]: {
|
|
3838
|
-
name: string;
|
|
3839
|
-
url: string;
|
|
3840
|
-
};
|
|
3841
|
-
default: {
|
|
3842
|
-
name: string;
|
|
3843
|
-
url: string;
|
|
3844
|
-
};
|
|
3845
|
-
};
|
|
3846
|
-
testnet?: boolean;
|
|
3847
|
-
};
|
|
3848
|
-
|
|
3849
3747
|
/**
|
|
3850
3748
|
* Get the embedded wallet for the user if they have one.
|
|
3851
3749
|
*
|
|
@@ -3858,4 +3756,4 @@ declare const LoginModal: ({ open }: {
|
|
|
3858
3756
|
open: boolean;
|
|
3859
3757
|
}) => react_jsx_runtime.JSX.Element;
|
|
3860
3758
|
|
|
3861
|
-
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,
|
|
3759
|
+
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, type SendCodeToEmail, type SendCodeToSms, SendTransactionModalUIOptions, SignMessageModalUIOptions, SignTypedDataParams, SiweFlowState, TelegramAuthFlowState, UnsignedTransactionRequest, type UseConnectCoinbaseSmartWalletInterface, type UseCustomAuth, type UseDelegatedActionsInterface, type UseFundWalletInterface, type UseImportWalletInterface, type UseLinkWithPasskey, type UseLoginWithEmail, type UseLoginWithPasskey, type UseLoginWithSms, type UseLoginWithTelegram, type UseOAuthTokens, type UseRecoverEmbeddedWalletInterface, type UseSignupWithPasskey, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectOrCreateWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithFarcasterV2, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRecoverEmbeddedWallet, useRegisterMfaListener, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useToken, useUpdateAccount, useUser, useWallets };
|
|
@@ -7,12 +7,12 @@ import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstract
|
|
|
7
7
|
import * as viem from 'viem';
|
|
8
8
|
import { SendTransactionParameters, Chain, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters, EIP1193Provider, PublicClient, Client } from 'viem';
|
|
9
9
|
import { SmartWalletType } from '@privy-io/js-sdk-core';
|
|
10
|
-
import {
|
|
10
|
+
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-Cq3xKsys.js';
|
|
11
11
|
import '@solana/wallet-adapter-base';
|
|
12
12
|
import '@privy-io/public-api';
|
|
13
|
-
import 'eventemitter3';
|
|
14
13
|
import '@metamask/eth-sig-util';
|
|
15
14
|
import '@solana/web3.js';
|
|
15
|
+
import 'eventemitter3';
|
|
16
16
|
|
|
17
17
|
type Call = {
|
|
18
18
|
readonly to?: any;
|
|
@@ -27,7 +27,7 @@ declare const signerToSmartAccountClient: ({ owner, smartWalletType, chain, publ
|
|
|
27
27
|
bundlerUrl: string;
|
|
28
28
|
paymasterUrl?: string;
|
|
29
29
|
paymasterContext?: Record<string, any>;
|
|
30
|
-
}) => Promise<permissionless.SmartAccountClient<viem.HttpTransport, Chain, object & {
|
|
30
|
+
}) => Promise<permissionless.SmartAccountClient<viem.HttpTransport<undefined, false>, Chain, object & {
|
|
31
31
|
client: Client;
|
|
32
32
|
entryPoint: {
|
|
33
33
|
abi: readonly [{
|
|
@@ -7,12 +7,12 @@ import { SmartAccount, SendUserOperationParameters } from 'viem/account-abstract
|
|
|
7
7
|
import * as viem from 'viem';
|
|
8
8
|
import { SendTransactionParameters, Chain, Hash, SignableMessage, Hex, TypedData, SignTypedDataParameters, EIP1193Provider, PublicClient, Client } from 'viem';
|
|
9
9
|
import { SmartWalletType } from '@privy-io/js-sdk-core';
|
|
10
|
-
import {
|
|
10
|
+
import { h as SendTransactionModalUIOptions, i as SignMessageModalUIOptions } from './types-Cq3xKsys.js';
|
|
11
11
|
import '@solana/wallet-adapter-base';
|
|
12
12
|
import '@privy-io/public-api';
|
|
13
|
-
import 'eventemitter3';
|
|
14
13
|
import '@metamask/eth-sig-util';
|
|
15
14
|
import '@solana/web3.js';
|
|
15
|
+
import 'eventemitter3';
|
|
16
16
|
|
|
17
17
|
type Call = {
|
|
18
18
|
readonly to?: any;
|
|
@@ -27,7 +27,7 @@ declare const signerToSmartAccountClient: ({ owner, smartWalletType, chain, publ
|
|
|
27
27
|
bundlerUrl: string;
|
|
28
28
|
paymasterUrl?: string;
|
|
29
29
|
paymasterContext?: Record<string, any>;
|
|
30
|
-
}) => Promise<permissionless.SmartAccountClient<viem.HttpTransport, Chain, object & {
|
|
30
|
+
}) => Promise<permissionless.SmartAccountClient<viem.HttpTransport<undefined, false>, Chain, object & {
|
|
31
31
|
client: Client;
|
|
32
32
|
entryPoint: {
|
|
33
33
|
abi: readonly [{
|
package/dist/dts/solana.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { W as Wallet,
|
|
2
|
-
export {
|
|
3
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
4
|
-
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
1
|
+
import { W as Wallet, j as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-Cq3xKsys.js';
|
|
2
|
+
export { C as ConnectedSolanaWallet, k as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-Cq3xKsys.js';
|
|
3
|
+
import { P as PrivyEvents } from './useSolanaWallets-BADh6ZyK.js';
|
|
4
|
+
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-BADh6ZyK.js';
|
|
5
5
|
import { SendTransactionOptions } from '@solana/wallet-adapter-base';
|
|
6
6
|
import { Connection } from '@solana/web3.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'viem';
|
|
9
9
|
import '@privy-io/js-sdk-core';
|
|
10
10
|
import '@privy-io/public-api';
|
|
11
|
-
import 'eventemitter3';
|
|
12
11
|
import '@metamask/eth-sig-util';
|
|
12
|
+
import 'eventemitter3';
|
|
13
13
|
|
|
14
14
|
interface UseImportWalletInterface {
|
|
15
15
|
/**
|
package/dist/dts/solana.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { W as Wallet,
|
|
2
|
-
export {
|
|
3
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
4
|
-
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
1
|
+
import { W as Wallet, j as SolanaFundingConfig, e as SupportedSolanaTransaction, h as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, i as SignMessageModalUIOptions } from './types-Cq3xKsys.js';
|
|
2
|
+
export { C as ConnectedSolanaWallet, k as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-Cq3xKsys.js';
|
|
3
|
+
import { P as PrivyEvents } from './useSolanaWallets-BADh6ZyK.js';
|
|
4
|
+
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-BADh6ZyK.js';
|
|
5
5
|
import { SendTransactionOptions } from '@solana/wallet-adapter-base';
|
|
6
6
|
import { Connection } from '@solana/web3.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'viem';
|
|
9
9
|
import '@privy-io/js-sdk-core';
|
|
10
10
|
import '@privy-io/public-api';
|
|
11
|
-
import 'eventemitter3';
|
|
12
11
|
import '@metamask/eth-sig-util';
|
|
12
|
+
import 'eventemitter3';
|
|
13
13
|
|
|
14
14
|
interface UseImportWalletInterface {
|
|
15
15
|
/**
|