@privy-io/react-auth 1.23.0-beta.2 → 1.23.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -4,30 +4,25 @@ import WCProvider from '@walletconnect/web3-provider';
4
4
  import { AbstractProvider } from 'web3-core';
5
5
  import { AxiosResponse, AxiosRequestConfig } from 'axios';
6
6
 
7
- type Address = string;
8
- type HexString = string;
9
- type BytesLike = ArrayLike<number> | string;
10
- type AccessList = Array<{
11
- address: string;
12
- storageKeys: Array<string>;
13
- }>;
14
- type AccessListish = AccessList | Array<[string, Array<string>]> | Record<string, Array<string>>;
15
- type Quantity = HexString | number | bigint;
7
+ type Quantity = string | number | bigint;
16
8
  type UnsignedTransactionRequest = {
17
- to?: Address;
9
+ to?: string;
18
10
  nonce?: number;
19
11
  gasLimit?: Quantity;
20
12
  gasPrice?: Quantity;
21
- data?: BytesLike;
13
+ data?: ArrayLike<number> | string;
22
14
  /** Integer of the value sent with this transaction, in Wei. */
23
15
  value?: Quantity;
24
16
  chainId?: number;
25
17
  type?: number;
26
- accessList?: AccessListish;
18
+ accessList?: Array<{
19
+ address: string;
20
+ storageKeys: Array<string>;
21
+ }> | Array<[string, Array<string>]> | Record<string, Array<string>>;
27
22
  maxPriorityFeePerGas?: Quantity;
28
23
  maxFeePerGas?: Quantity;
29
24
  };
30
- type Log = {
25
+ type TransactionLog = {
31
26
  blockNumber: number;
32
27
  blockHash: string;
33
28
  transactionIndex: number;
@@ -44,7 +39,7 @@ type TransactionReceipt = {
44
39
  contractAddress: string;
45
40
  transactionIndex: number;
46
41
  root?: string;
47
- logs: Array<Log>;
42
+ logs: Array<TransactionLog>;
48
43
  logsBloom: string;
49
44
  blockHash: string;
50
45
  transactionHash: string;
@@ -983,4 +978,4 @@ declare class PrivyClient {
983
978
  forkSession(): Promise<string>;
984
979
  }
985
980
 
986
- export { Apple, AppleOAuthWithMetadata, AsExternalProvider, ConnectorManager, Discord, DiscordOAuthWithMetadata, Email, EmailWithMetadata, Github, GithubOAuthWithMetadata, Google, GoogleOAuthWithMetadata, Phone, PhoneWithMetadata, PrivyClient, PrivyClientConfig, PrivyInterface, PrivyProvider, PrivyProviderProps, PrivyProxyProvider, SignMessageModalUIOptions, Twitter, TwitterOAuthWithMetadata, User, VERSION, Wallet, WalletConnector, WalletWithMetadata, getAccessToken, usePrivy };
981
+ export { Apple, AppleOAuthWithMetadata, AsExternalProvider, ConnectorManager, Discord, DiscordOAuthWithMetadata, Email, EmailWithMetadata, Github, GithubOAuthWithMetadata, Google, GoogleOAuthWithMetadata, Phone, PhoneWithMetadata, PrivyClient, PrivyClientConfig, PrivyInterface, PrivyProvider, PrivyProviderProps, PrivyProxyProvider, Quantity, SignMessageModalUIOptions, TransactionLog, TransactionReceipt, Twitter, TwitterOAuthWithMetadata, UnsignedTransactionRequest, User, VERSION, Wallet, WalletConnector, WalletWithMetadata, getAccessToken, usePrivy };