@privy-io/react-auth 2.5.0 → 2.6.0-beta-20250227225449
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/{importWallet-BtdsBO9M.js → importWallet-B5DqjPVV.js} +1 -1
- package/dist/cjs/index.js +21 -21
- package/dist/cjs/{prepareFundingModalData-CMUHp5LX.js → prepareFundingModalData-DLZMFTrm.js} +1 -1
- package/dist/cjs/{smart-wallets-DHKPQ7Hq.js → smart-wallets-vtS1l7Y7.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-CvVqVDpF.js → useActiveWallet-I-7m0dOy.js} +1 -1
- package/dist/cjs/{useFundWallet-CdZgj4jB.js → useFundWallet-CjeJPnMy.js} +1 -1
- package/dist/cjs/useWallets-BBzW2hm3.js +1 -0
- package/dist/dts/farcaster.d.mts +1 -1
- package/dist/dts/farcaster.d.ts +1 -1
- package/dist/dts/index.d.mts +174 -7
- package/dist/dts/index.d.ts +174 -7
- package/dist/dts/smart-wallets.d.mts +2 -2
- package/dist/dts/smart-wallets.d.ts +2 -2
- package/dist/dts/solana.d.mts +4 -4
- package/dist/dts/solana.d.ts +4 -4
- package/dist/dts/{types-PXMhPoaJ.d.mts → types-cJoXquFV.d.mts} +6 -1
- package/dist/dts/{types-PXMhPoaJ.d.ts → types-cJoXquFV.d.ts} +6 -1
- package/dist/dts/ui.d.mts +1 -1
- package/dist/dts/ui.d.ts +1 -1
- package/dist/dts/{useSolanaWallets-CKvyD1ZQ.d.mts → useSolanaWallets-C6q1MrJz.d.mts} +1 -1
- package/dist/dts/{useSolanaWallets-CKvyD1ZQ.d.ts → useSolanaWallets-C6q1MrJz.d.ts} +1 -1
- package/dist/esm/abstract-smart-wallets.mjs +1 -1
- package/dist/esm/{importWallet-CuDZ5ksz.mjs → importWallet-DYpg3md-.mjs} +1 -1
- package/dist/esm/index.mjs +21 -21
- package/dist/esm/{prepareFundingModalData-Dv7ze5Ty.mjs → prepareFundingModalData-e1jg2CY7.mjs} +1 -1
- package/dist/esm/{smart-wallets-Bq9f1kpC.mjs → smart-wallets-D-fEgOz3.mjs} +1 -1
- package/dist/esm/smart-wallets.mjs +1 -1
- package/dist/esm/solana.mjs +1 -1
- package/dist/esm/ui.mjs +1 -1
- package/dist/esm/{useActiveWallet-GrupFUTI.mjs → useActiveWallet-BgjNpC1K.mjs} +1 -1
- package/dist/esm/{useFundWallet-BNlRCc3a.mjs → useFundWallet-8iwjr8JS.mjs} +1 -1
- package/dist/esm/useWallets-9VoyF4Hs.mjs +1 -0
- package/package.json +4 -4
- package/dist/cjs/useWallets-BM8XHFTr.js +0 -1
- package/dist/esm/useWallets-CIsjbJl7.mjs +0 -1
package/dist/dts/index.d.mts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { MouseEvent } from 'react';
|
|
3
|
-
import { C as Chain, m as WalletClientType, d as UserRecoveryMethod, n as PrivyFarcasterSignerInitResponse, o as MfaSubmitArgs, E as EthereumRpcRequestType, p as SolanaRpcRequestType, q as EthereumRpcResponseType, r as SolanaRpcResponseType, s as PrivyClientConfig, u as RpcConfig, v as EIP1193Provider, w as EntropyIdVerifier$1, x as RequestArguments, y as WalletTimeoutError, z as WalletConnector, B as BaseConnectedEthereumWallet, A as ConnectedWalletMetadata, D as ConnectorType, G as WalletListEntry, H as ExternalWalletsConfig, I as BaseConnectedWallet, l as SolanaWalletConnector, U as User, J as ConnectWalletModalOptions, K as LoginModalOptions, h as CreateWalletOptions, W as Wallet, N as SetWalletRecoveryOptions, j as SignMessageModalUIOptions, Q as SignTypedDataParams, M as MfaMethod, T as UnsignedTransactionRequest, i as SendTransactionModalUIOptions, V as FundWalletConfig, X as ConnectedWallet, O as OAuthTokens, Y as CrossAppProviderDetails, Z as OAuthProviderType, _ as MoonpaySignRequest, $ as MoonpaySignResponse, a0 as SmartWalletConfig, a1 as PrivyServerConfig, a as LoginMethod, a2 as SiweWalletMetadata, a3 as TelegramAuthResult, a4 as TelegramWebAppData, a5 as OAuthUserInfo, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, g as ConnectedSolanaWallet, ad as CustomAuthFlowState, ae as TelegramAuthFlowState } from './types-
|
|
4
|
-
export { ax as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, aA as CrossAppAccount, aL as CrossAppAccountWithMetadata, au as Discord, aE as DiscordOAuthWithMetadata, aN as Email, ap as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, av as Github, aF as GithubOAuthWithMetadata, as as Google, aC as GoogleOAuthWithMetadata, aB as LinkedAccountType, b as LinkedAccountWithMetadata, aw as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayConfig, aj as MoonpayCurrencyCode, aS as MoonpayFundingConfig, ak as MoonpayPaymentMethod, aR as NativeFundingConfig, ao as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, aq as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, al as Quantity, ah as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, az as Telegram, aK as TelegramWithMetadata, ay as Tiktok, aG as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aP as TransactionUIOptions, at as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, ar as WalletWithMetadata } from './types-
|
|
3
|
+
import { C as Chain, m as WalletClientType, d as UserRecoveryMethod, n as PrivyFarcasterSignerInitResponse, o as MfaSubmitArgs, E as EthereumRpcRequestType, p as SolanaRpcRequestType, q as EthereumRpcResponseType, r as SolanaRpcResponseType, s as PrivyClientConfig, u as RpcConfig, v as EIP1193Provider, w as EntropyIdVerifier$1, x as RequestArguments, y as WalletTimeoutError, z as WalletConnector, B as BaseConnectedEthereumWallet, A as ConnectedWalletMetadata, D as ConnectorType, G as WalletListEntry, H as ExternalWalletsConfig, I as BaseConnectedWallet, l as SolanaWalletConnector, U as User, J as ConnectWalletModalOptions, K as LoginModalOptions, h as CreateWalletOptions, W as Wallet, N as SetWalletRecoveryOptions, j as SignMessageModalUIOptions, Q as SignTypedDataParams, M as MfaMethod, T as UnsignedTransactionRequest, i as SendTransactionModalUIOptions, V as FundWalletConfig, X as ConnectedWallet, O as OAuthTokens, Y as CrossAppProviderDetails, Z as OAuthProviderType, _ as MoonpaySignRequest, $ as MoonpaySignResponse, a0 as SmartWalletConfig, a1 as PrivyServerConfig, a as LoginMethod, a2 as SiweWalletMetadata, a3 as TelegramAuthResult, a4 as TelegramWebAppData, a5 as OAuthUserInfo, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, g as ConnectedSolanaWallet, ad as CustomAuthFlowState, ae as TelegramAuthFlowState } from './types-cJoXquFV.js';
|
|
4
|
+
export { ax as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, aA as CrossAppAccount, aL as CrossAppAccountWithMetadata, au as Discord, aE as DiscordOAuthWithMetadata, aN as Email, ap as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, av as Github, aF as GithubOAuthWithMetadata, as as Google, aC as GoogleOAuthWithMetadata, aB as LinkedAccountType, b as LinkedAccountWithMetadata, aw as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayConfig, aj as MoonpayCurrencyCode, aS as MoonpayFundingConfig, ak as MoonpayPaymentMethod, aR as NativeFundingConfig, ao as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, aq as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, al as Quantity, ah as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, az as Telegram, aK as TelegramWithMetadata, ay as Tiktok, aG as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aP as TransactionUIOptions, at as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, ar as WalletWithMetadata } from './types-cJoXquFV.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
9
|
import { PasskeyAuthenticateInputType, CustomMetadataType, SmartWalletType, PrivyCoinbaseOnRampInitInput, PrivyCoinbaseOnRampInitResponse, PrivyCoinbaseOnRampStatusResponse, PrivyTransactionScanningInputType, PrivyTransactionScanningResponseType } from '@privy-io/public-api';
|
|
10
10
|
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';
|
|
11
14
|
import * as viem from 'viem';
|
|
12
15
|
import { Address, HttpTransport } from 'viem';
|
|
13
16
|
import * as _simplewebauthn_types from '@simplewebauthn/types';
|
|
14
17
|
import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
|
|
15
18
|
import { Cluster } from '@solana/web3.js';
|
|
16
19
|
import { FetchOptions } from 'ofetch';
|
|
17
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
18
|
-
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
20
|
+
import { P as PrivyEvents } from './useSolanaWallets-C6q1MrJz.js';
|
|
21
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-C6q1MrJz.js';
|
|
19
22
|
import '@solana/wallet-adapter-base';
|
|
20
23
|
import '@privy-io/js-sdk-core';
|
|
21
24
|
import '@metamask/eth-sig-util';
|
|
@@ -520,6 +523,13 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
520
523
|
Method: "eth_call";
|
|
521
524
|
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];
|
|
522
525
|
ReturnType: viem.Hex;
|
|
526
|
+
}, {
|
|
527
|
+
Method: "eth_createAccessList";
|
|
528
|
+
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
529
|
+
ReturnType: {
|
|
530
|
+
accessList: viem.AccessList;
|
|
531
|
+
gasUsed: viem.Quantity;
|
|
532
|
+
};
|
|
523
533
|
}, {
|
|
524
534
|
Method: "eth_chainId";
|
|
525
535
|
Parameters?: undefined;
|
|
@@ -660,6 +670,31 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
660
670
|
Method: "eth_sendRawTransaction";
|
|
661
671
|
Parameters: [signedTransaction: viem.Hex];
|
|
662
672
|
ReturnType: viem.Hash;
|
|
673
|
+
}, {
|
|
674
|
+
Method: "eth_simulateV1";
|
|
675
|
+
Parameters: [{
|
|
676
|
+
blockStateCalls: readonly {
|
|
677
|
+
blockOverrides?: viem.RpcBlockOverrides | undefined;
|
|
678
|
+
calls?: readonly viem.ExactPartial<viem.RpcTransactionRequest>[] | undefined;
|
|
679
|
+
stateOverrides?: viem.RpcStateOverride | undefined;
|
|
680
|
+
}[];
|
|
681
|
+
returnFullTransactions?: boolean | undefined;
|
|
682
|
+
traceTransfers?: boolean | undefined;
|
|
683
|
+
validation?: boolean | undefined;
|
|
684
|
+
}, viem.RpcBlockNumber | viem.BlockTag];
|
|
685
|
+
ReturnType: readonly (viem.RpcBlock & {
|
|
686
|
+
calls: readonly {
|
|
687
|
+
error?: {
|
|
688
|
+
data?: viem.Hex | undefined;
|
|
689
|
+
code: number;
|
|
690
|
+
message: string;
|
|
691
|
+
} | undefined;
|
|
692
|
+
logs?: readonly viem.RpcLog[] | undefined;
|
|
693
|
+
gasUsed: viem.Hex;
|
|
694
|
+
returnData: viem.Hex;
|
|
695
|
+
status: viem.Hex;
|
|
696
|
+
}[];
|
|
697
|
+
})[];
|
|
663
698
|
}, {
|
|
664
699
|
Method: "eth_uninstallFilter";
|
|
665
700
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -676,6 +711,7 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
676
711
|
type: string;
|
|
677
712
|
uid: string;
|
|
678
713
|
call: (parameters: viem.CallParameters<Chain>) => Promise<viem.CallReturnType>;
|
|
714
|
+
createAccessList: (parameters: viem__types_actions_public_createAccessList.CreateAccessListParameters<Chain>) => Promise<viem__types_actions_public_createAccessList.CreateAccessListReturnType>;
|
|
679
715
|
createBlockFilter: () => Promise<viem.CreateBlockFilterReturnType>;
|
|
680
716
|
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>>;
|
|
681
717
|
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>>;
|
|
@@ -714,9 +750,12 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
714
750
|
getTransactionReceipt: (args: viem.GetTransactionReceiptParameters) => Promise<viem.GetTransactionReceiptReturnType<Chain>>;
|
|
715
751
|
multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem.MulticallParameters<contracts, allowFailure>) => Promise<viem.MulticallReturnType<contracts, allowFailure>>;
|
|
716
752
|
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>>;
|
|
717
|
-
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>>;
|
|
753
|
+
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>>;
|
|
718
754
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
719
|
-
|
|
755
|
+
simulate: <const calls extends readonly unknown[]>(args: viem__types_actions_public_simulateBlocks.SimulateBlocksParameters<calls>) => Promise<viem__types_actions_public_simulateBlocks.SimulateBlocksReturnType<calls>>;
|
|
756
|
+
simulateBlocks: <const calls extends readonly unknown[]>(args: viem__types_actions_public_simulateBlocks.SimulateBlocksParameters<calls>) => Promise<viem__types_actions_public_simulateBlocks.SimulateBlocksReturnType<calls>>;
|
|
757
|
+
simulateCalls: <const calls extends readonly unknown[]>(args: viem__types_actions_public_simulateCalls.SimulateCallsParameters<calls>) => Promise<viem__types_actions_public_simulateCalls.SimulateCallsReturnType<calls>>;
|
|
758
|
+
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>>;
|
|
720
759
|
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
721
760
|
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
722
761
|
verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
|
|
@@ -782,6 +821,13 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
782
821
|
Method: "eth_call";
|
|
783
822
|
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];
|
|
784
823
|
ReturnType: viem.Hex;
|
|
824
|
+
}, {
|
|
825
|
+
Method: "eth_createAccessList";
|
|
826
|
+
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
827
|
+
ReturnType: {
|
|
828
|
+
accessList: viem.AccessList;
|
|
829
|
+
gasUsed: viem.Quantity;
|
|
830
|
+
};
|
|
785
831
|
}, {
|
|
786
832
|
Method: "eth_chainId";
|
|
787
833
|
Parameters?: undefined;
|
|
@@ -922,6 +968,31 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
922
968
|
Method: "eth_sendRawTransaction";
|
|
923
969
|
Parameters: [signedTransaction: viem.Hex];
|
|
924
970
|
ReturnType: viem.Hash;
|
|
971
|
+
}, {
|
|
972
|
+
Method: "eth_simulateV1";
|
|
973
|
+
Parameters: [{
|
|
974
|
+
blockStateCalls: readonly {
|
|
975
|
+
blockOverrides?: viem.RpcBlockOverrides | undefined;
|
|
976
|
+
calls?: readonly viem.ExactPartial<viem.RpcTransactionRequest>[] | undefined;
|
|
977
|
+
stateOverrides?: viem.RpcStateOverride | undefined;
|
|
978
|
+
}[];
|
|
979
|
+
returnFullTransactions?: boolean | undefined;
|
|
980
|
+
traceTransfers?: boolean | undefined;
|
|
981
|
+
validation?: boolean | undefined;
|
|
982
|
+
}, viem.RpcBlockNumber | viem.BlockTag];
|
|
983
|
+
ReturnType: readonly (viem.RpcBlock & {
|
|
984
|
+
calls: readonly {
|
|
985
|
+
error?: {
|
|
986
|
+
data?: viem.Hex | undefined;
|
|
987
|
+
code: number;
|
|
988
|
+
message: string;
|
|
989
|
+
} | undefined;
|
|
990
|
+
logs?: readonly viem.RpcLog[] | undefined;
|
|
991
|
+
gasUsed: viem.Hex;
|
|
992
|
+
returnData: viem.Hex;
|
|
993
|
+
status: viem.Hex;
|
|
994
|
+
}[];
|
|
995
|
+
})[];
|
|
925
996
|
}, {
|
|
926
997
|
Method: "eth_uninstallFilter";
|
|
927
998
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -965,6 +1036,13 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
965
1036
|
Method: "eth_call";
|
|
966
1037
|
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];
|
|
967
1038
|
ReturnType: viem.Hex;
|
|
1039
|
+
}, {
|
|
1040
|
+
Method: "eth_createAccessList";
|
|
1041
|
+
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
1042
|
+
ReturnType: {
|
|
1043
|
+
accessList: viem.AccessList;
|
|
1044
|
+
gasUsed: viem.Quantity;
|
|
1045
|
+
};
|
|
968
1046
|
}, {
|
|
969
1047
|
Method: "eth_chainId";
|
|
970
1048
|
Parameters?: undefined;
|
|
@@ -1105,6 +1183,31 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
1105
1183
|
Method: "eth_sendRawTransaction";
|
|
1106
1184
|
Parameters: [signedTransaction: viem.Hex];
|
|
1107
1185
|
ReturnType: viem.Hash;
|
|
1186
|
+
}, {
|
|
1187
|
+
Method: "eth_simulateV1";
|
|
1188
|
+
Parameters: [{
|
|
1189
|
+
blockStateCalls: readonly {
|
|
1190
|
+
blockOverrides?: viem.RpcBlockOverrides | undefined;
|
|
1191
|
+
calls?: readonly viem.ExactPartial<viem.RpcTransactionRequest>[] | undefined;
|
|
1192
|
+
stateOverrides?: viem.RpcStateOverride | undefined;
|
|
1193
|
+
}[];
|
|
1194
|
+
returnFullTransactions?: boolean | undefined;
|
|
1195
|
+
traceTransfers?: boolean | undefined;
|
|
1196
|
+
validation?: boolean | undefined;
|
|
1197
|
+
}, viem.RpcBlockNumber | viem.BlockTag];
|
|
1198
|
+
ReturnType: readonly (viem.RpcBlock & {
|
|
1199
|
+
calls: readonly {
|
|
1200
|
+
error?: {
|
|
1201
|
+
data?: viem.Hex | undefined;
|
|
1202
|
+
code: number;
|
|
1203
|
+
message: string;
|
|
1204
|
+
} | undefined;
|
|
1205
|
+
logs?: readonly viem.RpcLog[] | undefined;
|
|
1206
|
+
gasUsed: viem.Hex;
|
|
1207
|
+
returnData: viem.Hex;
|
|
1208
|
+
status: viem.Hex;
|
|
1209
|
+
}[];
|
|
1210
|
+
})[];
|
|
1108
1211
|
}, {
|
|
1109
1212
|
Method: "eth_uninstallFilter";
|
|
1110
1213
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -3285,6 +3388,70 @@ declare function useSignMessage(callbacks?: PrivyEvents['signMessage']): {
|
|
|
3285
3388
|
}>;
|
|
3286
3389
|
};
|
|
3287
3390
|
|
|
3391
|
+
/**
|
|
3392
|
+
* @experimental Interfaces are subject to change in the future.
|
|
3393
|
+
*
|
|
3394
|
+
* Signs an EIP-7702 authorization with the user's wallet. This is
|
|
3395
|
+
* strongly not recommended for production use until the Pectra hard fork
|
|
3396
|
+
*/
|
|
3397
|
+
declare const useSignAuthorization: () => {
|
|
3398
|
+
signAuthorization: (input: {
|
|
3399
|
+
contractAddress: `0x${string}`;
|
|
3400
|
+
chainId?: number;
|
|
3401
|
+
nonce?: number;
|
|
3402
|
+
}, options?: {
|
|
3403
|
+
address?: string;
|
|
3404
|
+
}) => Promise<{
|
|
3405
|
+
r: `0x${string}`;
|
|
3406
|
+
s: `0x${string}`;
|
|
3407
|
+
v: bigint;
|
|
3408
|
+
yParity: number;
|
|
3409
|
+
contractAddress: viem.Address;
|
|
3410
|
+
chainId: number;
|
|
3411
|
+
nonce: number;
|
|
3412
|
+
} | {
|
|
3413
|
+
r: `0x${string}`;
|
|
3414
|
+
s: `0x${string}`;
|
|
3415
|
+
yParity: number;
|
|
3416
|
+
v?: bigint | undefined;
|
|
3417
|
+
contractAddress: viem.Address;
|
|
3418
|
+
chainId: number;
|
|
3419
|
+
nonce: number;
|
|
3420
|
+
} | {
|
|
3421
|
+
r: `0x${string}`;
|
|
3422
|
+
s: `0x${string}`;
|
|
3423
|
+
v: bigint;
|
|
3424
|
+
yParity: number;
|
|
3425
|
+
contractAddress: viem.Address;
|
|
3426
|
+
chainId: number;
|
|
3427
|
+
nonce: number;
|
|
3428
|
+
} | {
|
|
3429
|
+
r: `0x${string}`;
|
|
3430
|
+
s: `0x${string}`;
|
|
3431
|
+
yParity: number;
|
|
3432
|
+
v?: bigint | undefined;
|
|
3433
|
+
contractAddress: viem.Address;
|
|
3434
|
+
chainId: number;
|
|
3435
|
+
nonce: number;
|
|
3436
|
+
} | {
|
|
3437
|
+
r: `0x${string}`;
|
|
3438
|
+
s: `0x${string}`;
|
|
3439
|
+
v: bigint;
|
|
3440
|
+
yParity: number;
|
|
3441
|
+
contractAddress: viem.Address;
|
|
3442
|
+
chainId: number;
|
|
3443
|
+
nonce: number;
|
|
3444
|
+
} | {
|
|
3445
|
+
r: `0x${string}`;
|
|
3446
|
+
s: `0x${string}`;
|
|
3447
|
+
yParity: number;
|
|
3448
|
+
v?: bigint | undefined;
|
|
3449
|
+
contractAddress: viem.Address;
|
|
3450
|
+
chainId: number;
|
|
3451
|
+
nonce: number;
|
|
3452
|
+
}>;
|
|
3453
|
+
};
|
|
3454
|
+
|
|
3288
3455
|
/**
|
|
3289
3456
|
* Use this hook to sign typed data using the embedded wallet, and to attach callbacks for success and errors.
|
|
3290
3457
|
*
|
|
@@ -3590,4 +3757,4 @@ declare const LoginModal: ({ open }: {
|
|
|
3590
3757
|
open: boolean;
|
|
3591
3758
|
}) => react_jsx_runtime.JSX.Element;
|
|
3592
3759
|
|
|
3593
|
-
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, 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 UseSignupWithPasskey, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, addPrivyRpcToChain, addRpcUrlOverrideToChain, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRegisterMfaListener, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useToken, useUpdateAccount, useUser, useWallets };
|
|
3760
|
+
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, 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 UseSignupWithPasskey, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, addPrivyRpcToChain, addRpcUrlOverrideToChain, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRegisterMfaListener, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useToken, useUpdateAccount, useUser, useWallets };
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import react__default, { MouseEvent } from 'react';
|
|
3
|
-
import { C as Chain, m as WalletClientType, d as UserRecoveryMethod, n as PrivyFarcasterSignerInitResponse, o as MfaSubmitArgs, E as EthereumRpcRequestType, p as SolanaRpcRequestType, q as EthereumRpcResponseType, r as SolanaRpcResponseType, s as PrivyClientConfig, u as RpcConfig, v as EIP1193Provider, w as EntropyIdVerifier$1, x as RequestArguments, y as WalletTimeoutError, z as WalletConnector, B as BaseConnectedEthereumWallet, A as ConnectedWalletMetadata, D as ConnectorType, G as WalletListEntry, H as ExternalWalletsConfig, I as BaseConnectedWallet, l as SolanaWalletConnector, U as User, J as ConnectWalletModalOptions, K as LoginModalOptions, h as CreateWalletOptions, W as Wallet, N as SetWalletRecoveryOptions, j as SignMessageModalUIOptions, Q as SignTypedDataParams, M as MfaMethod, T as UnsignedTransactionRequest, i as SendTransactionModalUIOptions, V as FundWalletConfig, X as ConnectedWallet, O as OAuthTokens, Y as CrossAppProviderDetails, Z as OAuthProviderType, _ as MoonpaySignRequest, $ as MoonpaySignResponse, a0 as SmartWalletConfig, a1 as PrivyServerConfig, a as LoginMethod, a2 as SiweWalletMetadata, a3 as TelegramAuthResult, a4 as TelegramWebAppData, a5 as OAuthUserInfo, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, g as ConnectedSolanaWallet, ad as CustomAuthFlowState, ae as TelegramAuthFlowState } from './types-
|
|
4
|
-
export { ax as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, aA as CrossAppAccount, aL as CrossAppAccountWithMetadata, au as Discord, aE as DiscordOAuthWithMetadata, aN as Email, ap as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, av as Github, aF as GithubOAuthWithMetadata, as as Google, aC as GoogleOAuthWithMetadata, aB as LinkedAccountType, b as LinkedAccountWithMetadata, aw as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayConfig, aj as MoonpayCurrencyCode, aS as MoonpayFundingConfig, ak as MoonpayPaymentMethod, aR as NativeFundingConfig, ao as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, aq as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, al as Quantity, ah as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, az as Telegram, aK as TelegramWithMetadata, ay as Tiktok, aG as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aP as TransactionUIOptions, at as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, ar as WalletWithMetadata } from './types-
|
|
3
|
+
import { C as Chain, m as WalletClientType, d as UserRecoveryMethod, n as PrivyFarcasterSignerInitResponse, o as MfaSubmitArgs, E as EthereumRpcRequestType, p as SolanaRpcRequestType, q as EthereumRpcResponseType, r as SolanaRpcResponseType, s as PrivyClientConfig, u as RpcConfig, v as EIP1193Provider, w as EntropyIdVerifier$1, x as RequestArguments, y as WalletTimeoutError, z as WalletConnector, B as BaseConnectedEthereumWallet, A as ConnectedWalletMetadata, D as ConnectorType, G as WalletListEntry, H as ExternalWalletsConfig, I as BaseConnectedWallet, l as SolanaWalletConnector, U as User, J as ConnectWalletModalOptions, K as LoginModalOptions, h as CreateWalletOptions, W as Wallet, N as SetWalletRecoveryOptions, j as SignMessageModalUIOptions, Q as SignTypedDataParams, M as MfaMethod, T as UnsignedTransactionRequest, i as SendTransactionModalUIOptions, V as FundWalletConfig, X as ConnectedWallet, O as OAuthTokens, Y as CrossAppProviderDetails, Z as OAuthProviderType, _ as MoonpaySignRequest, $ as MoonpaySignResponse, a0 as SmartWalletConfig, a1 as PrivyServerConfig, a as LoginMethod, a2 as SiweWalletMetadata, a3 as TelegramAuthResult, a4 as TelegramWebAppData, a5 as OAuthUserInfo, a6 as OAuthFlowState, a7 as LoginWithCode, a8 as OtpFlowState, a9 as PasskeyFlowState, aa as SiweFlowState, ab as UnsignedTransactionRequestWithChainId, ac as BaseConnectedWalletType, g as ConnectedSolanaWallet, ad as CustomAuthFlowState, ae as TelegramAuthFlowState } from './types-cJoXquFV.js';
|
|
4
|
+
export { ax as Apple, aI as AppleOAuthWithMetadata, aQ as ContractUIOptions, aA as CrossAppAccount, aL as CrossAppAccountWithMetadata, au as Discord, aE as DiscordOAuthWithMetadata, aN as Email, ap as EmailWithMetadata, aU as Farcaster, aJ as FarcasterWithMetadata, av as Github, aF as GithubOAuthWithMetadata, as as Google, aC as GoogleOAuthWithMetadata, aB as LinkedAccountType, b as LinkedAccountWithMetadata, aw as LinkedIn, aH as LinkedInOAuthWithMetadata, aW as LoginMethodOrderOption, ag as MessageTypes, ai as MoonpayConfig, aj as MoonpayCurrencyCode, aS as MoonpayFundingConfig, ak as MoonpayPaymentMethod, aR as NativeFundingConfig, ao as NonEmptyArray, aV as Passkey, aM as PasskeyWithMetadata, aO as Phone, aq as PhoneWithMetadata, aT as PriceDisplayOptions, P as PrivyErrorCode, al as Quantity, ah as SmartWallet, f as SolanaCluster, k as SolanaFundingConfig, S as SolanaTransactionReceipt, e as SupportedSolanaTransaction, az as Telegram, aK as TelegramWithMetadata, ay as Tiktok, aG as TiktokOAuthWithMetadata, am as TransactionLog, an as TransactionReceipt, aP as TransactionUIOptions, at as Twitter, aD as TwitterOAuthWithMetadata, af as TypedMessage, ar as WalletWithMetadata } from './types-cJoXquFV.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
9
|
import { PasskeyAuthenticateInputType, CustomMetadataType, SmartWalletType, PrivyCoinbaseOnRampInitInput, PrivyCoinbaseOnRampInitResponse, PrivyCoinbaseOnRampStatusResponse, PrivyTransactionScanningInputType, PrivyTransactionScanningResponseType } from '@privy-io/public-api';
|
|
10
10
|
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';
|
|
11
14
|
import * as viem from 'viem';
|
|
12
15
|
import { Address, HttpTransport } from 'viem';
|
|
13
16
|
import * as _simplewebauthn_types from '@simplewebauthn/types';
|
|
14
17
|
import { PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types';
|
|
15
18
|
import { Cluster } from '@solana/web3.js';
|
|
16
19
|
import { FetchOptions } from 'ofetch';
|
|
17
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
18
|
-
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
20
|
+
import { P as PrivyEvents } from './useSolanaWallets-C6q1MrJz.js';
|
|
21
|
+
export { C as CallbackError, U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-C6q1MrJz.js';
|
|
19
22
|
import '@solana/wallet-adapter-base';
|
|
20
23
|
import '@privy-io/js-sdk-core';
|
|
21
24
|
import '@metamask/eth-sig-util';
|
|
@@ -520,6 +523,13 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
520
523
|
Method: "eth_call";
|
|
521
524
|
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];
|
|
522
525
|
ReturnType: viem.Hex;
|
|
526
|
+
}, {
|
|
527
|
+
Method: "eth_createAccessList";
|
|
528
|
+
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
529
|
+
ReturnType: {
|
|
530
|
+
accessList: viem.AccessList;
|
|
531
|
+
gasUsed: viem.Quantity;
|
|
532
|
+
};
|
|
523
533
|
}, {
|
|
524
534
|
Method: "eth_chainId";
|
|
525
535
|
Parameters?: undefined;
|
|
@@ -660,6 +670,31 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
660
670
|
Method: "eth_sendRawTransaction";
|
|
661
671
|
Parameters: [signedTransaction: viem.Hex];
|
|
662
672
|
ReturnType: viem.Hash;
|
|
673
|
+
}, {
|
|
674
|
+
Method: "eth_simulateV1";
|
|
675
|
+
Parameters: [{
|
|
676
|
+
blockStateCalls: readonly {
|
|
677
|
+
blockOverrides?: viem.RpcBlockOverrides | undefined;
|
|
678
|
+
calls?: readonly viem.ExactPartial<viem.RpcTransactionRequest>[] | undefined;
|
|
679
|
+
stateOverrides?: viem.RpcStateOverride | undefined;
|
|
680
|
+
}[];
|
|
681
|
+
returnFullTransactions?: boolean | undefined;
|
|
682
|
+
traceTransfers?: boolean | undefined;
|
|
683
|
+
validation?: boolean | undefined;
|
|
684
|
+
}, viem.RpcBlockNumber | viem.BlockTag];
|
|
685
|
+
ReturnType: readonly (viem.RpcBlock & {
|
|
686
|
+
calls: readonly {
|
|
687
|
+
error?: {
|
|
688
|
+
data?: viem.Hex | undefined;
|
|
689
|
+
code: number;
|
|
690
|
+
message: string;
|
|
691
|
+
} | undefined;
|
|
692
|
+
logs?: readonly viem.RpcLog[] | undefined;
|
|
693
|
+
gasUsed: viem.Hex;
|
|
694
|
+
returnData: viem.Hex;
|
|
695
|
+
status: viem.Hex;
|
|
696
|
+
}[];
|
|
697
|
+
})[];
|
|
663
698
|
}, {
|
|
664
699
|
Method: "eth_uninstallFilter";
|
|
665
700
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -676,6 +711,7 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
676
711
|
type: string;
|
|
677
712
|
uid: string;
|
|
678
713
|
call: (parameters: viem.CallParameters<Chain>) => Promise<viem.CallReturnType>;
|
|
714
|
+
createAccessList: (parameters: viem__types_actions_public_createAccessList.CreateAccessListParameters<Chain>) => Promise<viem__types_actions_public_createAccessList.CreateAccessListReturnType>;
|
|
679
715
|
createBlockFilter: () => Promise<viem.CreateBlockFilterReturnType>;
|
|
680
716
|
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>>;
|
|
681
717
|
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>>;
|
|
@@ -714,9 +750,12 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
714
750
|
getTransactionReceipt: (args: viem.GetTransactionReceiptParameters) => Promise<viem.GetTransactionReceiptReturnType<Chain>>;
|
|
715
751
|
multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem.MulticallParameters<contracts, allowFailure>) => Promise<viem.MulticallReturnType<contracts, allowFailure>>;
|
|
716
752
|
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>>;
|
|
717
|
-
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>>;
|
|
753
|
+
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>>;
|
|
718
754
|
sendRawTransaction: (args: viem.SendRawTransactionParameters) => Promise<viem.SendRawTransactionReturnType>;
|
|
719
|
-
|
|
755
|
+
simulate: <const calls extends readonly unknown[]>(args: viem__types_actions_public_simulateBlocks.SimulateBlocksParameters<calls>) => Promise<viem__types_actions_public_simulateBlocks.SimulateBlocksReturnType<calls>>;
|
|
756
|
+
simulateBlocks: <const calls extends readonly unknown[]>(args: viem__types_actions_public_simulateBlocks.SimulateBlocksParameters<calls>) => Promise<viem__types_actions_public_simulateBlocks.SimulateBlocksReturnType<calls>>;
|
|
757
|
+
simulateCalls: <const calls extends readonly unknown[]>(args: viem__types_actions_public_simulateCalls.SimulateCallsParameters<calls>) => Promise<viem__types_actions_public_simulateCalls.SimulateCallsReturnType<calls>>;
|
|
758
|
+
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>>;
|
|
720
759
|
verifyMessage: (args: viem.VerifyMessageActionParameters) => Promise<viem.VerifyMessageActionReturnType>;
|
|
721
760
|
verifySiweMessage: (args: viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageParameters) => Promise<viem__types_actions_siwe_verifySiweMessage.VerifySiweMessageReturnType>;
|
|
722
761
|
verifyTypedData: (args: viem.VerifyTypedDataActionParameters) => Promise<viem.VerifyTypedDataActionReturnType>;
|
|
@@ -782,6 +821,13 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
782
821
|
Method: "eth_call";
|
|
783
822
|
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];
|
|
784
823
|
ReturnType: viem.Hex;
|
|
824
|
+
}, {
|
|
825
|
+
Method: "eth_createAccessList";
|
|
826
|
+
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
827
|
+
ReturnType: {
|
|
828
|
+
accessList: viem.AccessList;
|
|
829
|
+
gasUsed: viem.Quantity;
|
|
830
|
+
};
|
|
785
831
|
}, {
|
|
786
832
|
Method: "eth_chainId";
|
|
787
833
|
Parameters?: undefined;
|
|
@@ -922,6 +968,31 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
922
968
|
Method: "eth_sendRawTransaction";
|
|
923
969
|
Parameters: [signedTransaction: viem.Hex];
|
|
924
970
|
ReturnType: viem.Hash;
|
|
971
|
+
}, {
|
|
972
|
+
Method: "eth_simulateV1";
|
|
973
|
+
Parameters: [{
|
|
974
|
+
blockStateCalls: readonly {
|
|
975
|
+
blockOverrides?: viem.RpcBlockOverrides | undefined;
|
|
976
|
+
calls?: readonly viem.ExactPartial<viem.RpcTransactionRequest>[] | undefined;
|
|
977
|
+
stateOverrides?: viem.RpcStateOverride | undefined;
|
|
978
|
+
}[];
|
|
979
|
+
returnFullTransactions?: boolean | undefined;
|
|
980
|
+
traceTransfers?: boolean | undefined;
|
|
981
|
+
validation?: boolean | undefined;
|
|
982
|
+
}, viem.RpcBlockNumber | viem.BlockTag];
|
|
983
|
+
ReturnType: readonly (viem.RpcBlock & {
|
|
984
|
+
calls: readonly {
|
|
985
|
+
error?: {
|
|
986
|
+
data?: viem.Hex | undefined;
|
|
987
|
+
code: number;
|
|
988
|
+
message: string;
|
|
989
|
+
} | undefined;
|
|
990
|
+
logs?: readonly viem.RpcLog[] | undefined;
|
|
991
|
+
gasUsed: viem.Hex;
|
|
992
|
+
returnData: viem.Hex;
|
|
993
|
+
status: viem.Hex;
|
|
994
|
+
}[];
|
|
995
|
+
})[];
|
|
925
996
|
}, {
|
|
926
997
|
Method: "eth_uninstallFilter";
|
|
927
998
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -965,6 +1036,13 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
965
1036
|
Method: "eth_call";
|
|
966
1037
|
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];
|
|
967
1038
|
ReturnType: viem.Hex;
|
|
1039
|
+
}, {
|
|
1040
|
+
Method: "eth_createAccessList";
|
|
1041
|
+
Parameters: [transaction: viem.ExactPartial<viem.RpcTransactionRequest>] | [transaction: viem.ExactPartial<viem.RpcTransactionRequest>, block: viem.RpcBlockNumber | viem.BlockTag | viem.RpcBlockIdentifier];
|
|
1042
|
+
ReturnType: {
|
|
1043
|
+
accessList: viem.AccessList;
|
|
1044
|
+
gasUsed: viem.Quantity;
|
|
1045
|
+
};
|
|
968
1046
|
}, {
|
|
969
1047
|
Method: "eth_chainId";
|
|
970
1048
|
Parameters?: undefined;
|
|
@@ -1105,6 +1183,31 @@ declare const getPublicClient: (chainId: number, chains: Chain[], rpcConfig: Rpc
|
|
|
1105
1183
|
Method: "eth_sendRawTransaction";
|
|
1106
1184
|
Parameters: [signedTransaction: viem.Hex];
|
|
1107
1185
|
ReturnType: viem.Hash;
|
|
1186
|
+
}, {
|
|
1187
|
+
Method: "eth_simulateV1";
|
|
1188
|
+
Parameters: [{
|
|
1189
|
+
blockStateCalls: readonly {
|
|
1190
|
+
blockOverrides?: viem.RpcBlockOverrides | undefined;
|
|
1191
|
+
calls?: readonly viem.ExactPartial<viem.RpcTransactionRequest>[] | undefined;
|
|
1192
|
+
stateOverrides?: viem.RpcStateOverride | undefined;
|
|
1193
|
+
}[];
|
|
1194
|
+
returnFullTransactions?: boolean | undefined;
|
|
1195
|
+
traceTransfers?: boolean | undefined;
|
|
1196
|
+
validation?: boolean | undefined;
|
|
1197
|
+
}, viem.RpcBlockNumber | viem.BlockTag];
|
|
1198
|
+
ReturnType: readonly (viem.RpcBlock & {
|
|
1199
|
+
calls: readonly {
|
|
1200
|
+
error?: {
|
|
1201
|
+
data?: viem.Hex | undefined;
|
|
1202
|
+
code: number;
|
|
1203
|
+
message: string;
|
|
1204
|
+
} | undefined;
|
|
1205
|
+
logs?: readonly viem.RpcLog[] | undefined;
|
|
1206
|
+
gasUsed: viem.Hex;
|
|
1207
|
+
returnData: viem.Hex;
|
|
1208
|
+
status: viem.Hex;
|
|
1209
|
+
}[];
|
|
1210
|
+
})[];
|
|
1108
1211
|
}, {
|
|
1109
1212
|
Method: "eth_uninstallFilter";
|
|
1110
1213
|
Parameters: [filterId: viem.Quantity];
|
|
@@ -3285,6 +3388,70 @@ declare function useSignMessage(callbacks?: PrivyEvents['signMessage']): {
|
|
|
3285
3388
|
}>;
|
|
3286
3389
|
};
|
|
3287
3390
|
|
|
3391
|
+
/**
|
|
3392
|
+
* @experimental Interfaces are subject to change in the future.
|
|
3393
|
+
*
|
|
3394
|
+
* Signs an EIP-7702 authorization with the user's wallet. This is
|
|
3395
|
+
* strongly not recommended for production use until the Pectra hard fork
|
|
3396
|
+
*/
|
|
3397
|
+
declare const useSignAuthorization: () => {
|
|
3398
|
+
signAuthorization: (input: {
|
|
3399
|
+
contractAddress: `0x${string}`;
|
|
3400
|
+
chainId?: number;
|
|
3401
|
+
nonce?: number;
|
|
3402
|
+
}, options?: {
|
|
3403
|
+
address?: string;
|
|
3404
|
+
}) => Promise<{
|
|
3405
|
+
r: `0x${string}`;
|
|
3406
|
+
s: `0x${string}`;
|
|
3407
|
+
v: bigint;
|
|
3408
|
+
yParity: number;
|
|
3409
|
+
contractAddress: viem.Address;
|
|
3410
|
+
chainId: number;
|
|
3411
|
+
nonce: number;
|
|
3412
|
+
} | {
|
|
3413
|
+
r: `0x${string}`;
|
|
3414
|
+
s: `0x${string}`;
|
|
3415
|
+
yParity: number;
|
|
3416
|
+
v?: bigint | undefined;
|
|
3417
|
+
contractAddress: viem.Address;
|
|
3418
|
+
chainId: number;
|
|
3419
|
+
nonce: number;
|
|
3420
|
+
} | {
|
|
3421
|
+
r: `0x${string}`;
|
|
3422
|
+
s: `0x${string}`;
|
|
3423
|
+
v: bigint;
|
|
3424
|
+
yParity: number;
|
|
3425
|
+
contractAddress: viem.Address;
|
|
3426
|
+
chainId: number;
|
|
3427
|
+
nonce: number;
|
|
3428
|
+
} | {
|
|
3429
|
+
r: `0x${string}`;
|
|
3430
|
+
s: `0x${string}`;
|
|
3431
|
+
yParity: number;
|
|
3432
|
+
v?: bigint | undefined;
|
|
3433
|
+
contractAddress: viem.Address;
|
|
3434
|
+
chainId: number;
|
|
3435
|
+
nonce: number;
|
|
3436
|
+
} | {
|
|
3437
|
+
r: `0x${string}`;
|
|
3438
|
+
s: `0x${string}`;
|
|
3439
|
+
v: bigint;
|
|
3440
|
+
yParity: number;
|
|
3441
|
+
contractAddress: viem.Address;
|
|
3442
|
+
chainId: number;
|
|
3443
|
+
nonce: number;
|
|
3444
|
+
} | {
|
|
3445
|
+
r: `0x${string}`;
|
|
3446
|
+
s: `0x${string}`;
|
|
3447
|
+
yParity: number;
|
|
3448
|
+
v?: bigint | undefined;
|
|
3449
|
+
contractAddress: viem.Address;
|
|
3450
|
+
chainId: number;
|
|
3451
|
+
nonce: number;
|
|
3452
|
+
}>;
|
|
3453
|
+
};
|
|
3454
|
+
|
|
3288
3455
|
/**
|
|
3289
3456
|
* Use this hook to sign typed data using the embedded wallet, and to attach callbacks for success and errors.
|
|
3290
3457
|
*
|
|
@@ -3590,4 +3757,4 @@ declare const LoginModal: ({ open }: {
|
|
|
3590
3757
|
open: boolean;
|
|
3591
3758
|
}) => react_jsx_runtime.JSX.Element;
|
|
3592
3759
|
|
|
3593
|
-
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, 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 UseSignupWithPasskey, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, addPrivyRpcToChain, addRpcUrlOverrideToChain, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRegisterMfaListener, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useToken, useUpdateAccount, useUser, useWallets };
|
|
3760
|
+
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, 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 UseSignupWithPasskey, type UseWalletsInterface, User, VERSION, Wallet, WalletConnector, WalletListEntry, addPrivyRpcToChain, addRpcUrlOverrideToChain, errorIndicatesMaxMfaRetries, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, getCustomerAccessToken as getAccessToken, getEmbeddedConnectedWallet, useActiveWallet, useConnectCoinbaseSmartWallet, useConnectWallet, useCreateWallet, useCrossAppAccounts, useCustomAuth, useDelegatedActions, useFarcasterSigner, useFundWallet, useGuestAccounts, useHeadlessDelegatedActions, useIdentityToken, useImportWallet, useLinkAccount, useLinkWithPasskey, useLinkWithSiwe, useLogin, useLoginWithEmail, useLoginWithOAuth, useLoginWithPasskey, useLoginWithSms, useLoginWithTelegram, useLogout, useMfa, useMfaEnrollment, useModalStatus, useOAuthTokens, usePrivy, useRegisterMfaListener, useSendTransaction, useSetWalletPassword, useSetWalletRecovery, useSignAuthorization, useSignMessage, useSignTransaction, useSignTypedData, useSignupWithPasskey, useToken, useUpdateAccount, useUser, useWallets };
|
|
@@ -7,7 +7,7 @@ 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 { i as SendTransactionModalUIOptions, j as SignMessageModalUIOptions } from './types-
|
|
10
|
+
import { i as SendTransactionModalUIOptions, j as SignMessageModalUIOptions } from './types-cJoXquFV.js';
|
|
11
11
|
import '@solana/wallet-adapter-base';
|
|
12
12
|
import '@privy-io/public-api';
|
|
13
13
|
import 'eventemitter3';
|
|
@@ -694,7 +694,7 @@ declare const signerToSmartAccountClient: ({ owner, smartWalletType, chain, publ
|
|
|
694
694
|
getNonce?: ((parameters?: {
|
|
695
695
|
key?: bigint | undefined;
|
|
696
696
|
} | undefined) => Promise<bigint>) | undefined;
|
|
697
|
-
getStubSignature: () => Promise<Hex>;
|
|
697
|
+
getStubSignature: (parameters?: viem_account_abstraction.UserOperationRequest | undefined) => Promise<Hex>;
|
|
698
698
|
nonceKeyManager?: viem.NonceManager | undefined;
|
|
699
699
|
sign: (parameters: {
|
|
700
700
|
hash: Hash;
|
|
@@ -7,7 +7,7 @@ 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 { i as SendTransactionModalUIOptions, j as SignMessageModalUIOptions } from './types-
|
|
10
|
+
import { i as SendTransactionModalUIOptions, j as SignMessageModalUIOptions } from './types-cJoXquFV.js';
|
|
11
11
|
import '@solana/wallet-adapter-base';
|
|
12
12
|
import '@privy-io/public-api';
|
|
13
13
|
import 'eventemitter3';
|
|
@@ -694,7 +694,7 @@ declare const signerToSmartAccountClient: ({ owner, smartWalletType, chain, publ
|
|
|
694
694
|
getNonce?: ((parameters?: {
|
|
695
695
|
key?: bigint | undefined;
|
|
696
696
|
} | undefined) => Promise<bigint>) | undefined;
|
|
697
|
-
getStubSignature: () => Promise<Hex>;
|
|
697
|
+
getStubSignature: (parameters?: viem_account_abstraction.UserOperationRequest | undefined) => Promise<Hex>;
|
|
698
698
|
nonceKeyManager?: viem.NonceManager | undefined;
|
|
699
699
|
sign: (parameters: {
|
|
700
700
|
hash: Hash;
|
package/dist/dts/solana.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as Wallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, i as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, j as SignMessageModalUIOptions } from './types-
|
|
2
|
-
export { g as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-
|
|
3
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
4
|
-
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
1
|
+
import { W as Wallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, i as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, j as SignMessageModalUIOptions } from './types-cJoXquFV.js';
|
|
2
|
+
export { g as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-cJoXquFV.js';
|
|
3
|
+
import { P as PrivyEvents } from './useSolanaWallets-C6q1MrJz.js';
|
|
4
|
+
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-C6q1MrJz.js';
|
|
5
5
|
import { SendTransactionOptions } from '@solana/wallet-adapter-base';
|
|
6
6
|
import { Connection } from '@solana/web3.js';
|
|
7
7
|
import 'react';
|
package/dist/dts/solana.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as Wallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, i as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, j as SignMessageModalUIOptions } from './types-
|
|
2
|
-
export { g as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-
|
|
3
|
-
import { P as PrivyEvents } from './useSolanaWallets-
|
|
4
|
-
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-
|
|
1
|
+
import { W as Wallet, k as SolanaFundingConfig, e as SupportedSolanaTransaction, i as SendTransactionModalUIOptions, S as SolanaTransactionReceipt, j as SignMessageModalUIOptions } from './types-cJoXquFV.js';
|
|
2
|
+
export { g as ConnectedSolanaWallet, l as SolanaAdapterConnector, t as toSolanaWalletConnectors } from './types-cJoXquFV.js';
|
|
3
|
+
import { P as PrivyEvents } from './useSolanaWallets-C6q1MrJz.js';
|
|
4
|
+
export { U as UseSolanaWalletsInterface, u as useSolanaWallets } from './useSolanaWallets-C6q1MrJz.js';
|
|
5
5
|
import { SendTransactionOptions } from '@solana/wallet-adapter-base';
|
|
6
6
|
import { Connection } from '@solana/web3.js';
|
|
7
7
|
import 'react';
|