@privy-io/react-auth 1.35.1 → 1.35.2-beta.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/esm/index.js +119 -119
- package/dist/index.d.ts +5 -3
- package/dist/index.js +134 -134
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import react, { ReactElement } from 'react';
|
|
2
|
-
import { ExternalProvider,
|
|
2
|
+
import { ExternalProvider, StaticJsonRpcProvider, Web3Provider } from '@ethersproject/providers';
|
|
3
3
|
import { AbstractProvider } from 'web3-core';
|
|
4
4
|
import EventEmitter from 'eventemitter3';
|
|
5
5
|
import { TypedMessage, MessageTypes } from '@metamask/eth-sig-util';
|
|
@@ -195,7 +195,9 @@ type Chain = {
|
|
|
195
195
|
testnet?: boolean;
|
|
196
196
|
};
|
|
197
197
|
/**
|
|
198
|
-
* RPC overrides to support custom RPC URLs.
|
|
198
|
+
* RPC overrides to support custom RPC URLs. Do not provide an RPC URL
|
|
199
|
+
* that can serve multiple networks. You should only provide RPC URLs that
|
|
200
|
+
* are specific to the network you'd like to override.
|
|
199
201
|
*/
|
|
200
202
|
type RpcConfig = {
|
|
201
203
|
/**
|
|
@@ -307,7 +309,7 @@ interface RequestArguments {
|
|
|
307
309
|
declare class Embedded1193Provider extends EventEmitter implements EIP1193Provider {
|
|
308
310
|
walletProxy: EmbeddedWalletProxy;
|
|
309
311
|
address: string;
|
|
310
|
-
provider:
|
|
312
|
+
provider: StaticJsonRpcProvider;
|
|
311
313
|
chainId: number;
|
|
312
314
|
rpcConfig: RpcConfig;
|
|
313
315
|
constructor(walletProxy: EmbeddedWalletProxy, address: string, rpcConfig: RpcConfig, chainId?: number);
|