@privy-io/react-auth 1.26.2-beta.1 → 1.26.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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import react, { ReactElement } from 'react';
2
- import { ExternalProvider, InfuraProvider, Web3Provider } from '@ethersproject/providers';
2
+ import { ExternalProvider, JsonRpcProvider, Web3Provider } from '@ethersproject/providers';
3
3
  import { AbstractProvider } from 'web3-core';
4
4
  import EventEmitter from 'eventemitter3';
5
5
  import { FetchOptions } from 'ofetch';
@@ -230,9 +230,14 @@ interface RequestArguments {
230
230
  declare class Embedded1193Provider extends EventEmitter implements EIP1193Provider {
231
231
  walletProxy: EmbeddedWalletProxy;
232
232
  address: string;
233
- infuraProvider: InfuraProvider;
233
+ provider: JsonRpcProvider;
234
234
  chainId: number;
235
235
  constructor(walletProxy: EmbeddedWalletProxy, address: string, chainId?: number);
236
+ /**
237
+ * Build an infura endpoint for a given chainId if it is one of our
238
+ * supported chains.
239
+ */
240
+ private getInfuraEndpoint;
236
241
  handleSendTransaction(args: RequestArguments): Promise<string>;
237
242
  private handleSwitchEthereumChain;
238
243
  private handlePersonalSign;