Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ea27270
Add a new extenders function for providers
nicosantangelo May 7, 2023
bc2ffd4
Delete the ExtendersManager class in favor of a simple array
nicosantangelo May 9, 2023
5cd65ea
Delete package-lock.json
nicosantangelo May 9, 2023
53cfffc
First approach to a lazy initialization provider
nicosantangelo May 12, 2023
b65ec8b
Clean up the code a bit and name functions
nicosantangelo May 14, 2023
4c8cb3f
CustomError
nicosantangelo May 14, 2023
d37f1ad
Rename extenders dropping the 'Manager'
nicosantangelo May 14, 2023
8f129a7
Rename internal extenders prop
nicosantangelo May 15, 2023
b6075a1
Be more specific on when the provider is initialized Lazily
nicosantangelo May 15, 2023
e18e61f
Enforce leading _ in private class properties
fvictorio May 16, 2023
b4f7749
Avoid floating promise in sendAsync
fvictorio May 16, 2023
1dd01be
Fix strict-boolean-expression warnings
fvictorio May 16, 2023
1e54d33
Allos Function type for EventEmitter functions
fvictorio May 16, 2023
72b3295
Add UNINITIALIZED_PROVIDER error code
fvictorio May 16, 2023
8c5f3f3
Create mean-crews-wait.md
fvictorio May 16, 2023
2e58fe7
Make ProviderFactory type internal
nicosantangelo May 16, 2023
32e7ae4
Allow for EventEmitter methods before initialization
nicosantangelo May 16, 2023
5fdf636
Reuse type
nicosantangelo May 16, 2023
e24d580
Typos and better English
nicosantangelo May 16, 2023
26becac
Forego of using sideeffects for creating providers
nicosantangelo May 16, 2023
13a98a7
Docs
nicosantangelo May 17, 2023
14252d1
LazyInitializationProvider tests
nicosantangelo May 18, 2023
91a1659
construction tests
nicosantangelo May 18, 2023
eb5a8c6
Export the ProviderWrapper helper class
nicosantangelo May 18, 2023
53fd5fa
Fix linting errors
nicosantangelo May 18, 2023
3e4b413
Provider wrapper tests
nicosantangelo May 18, 2023
8197e93
Supply the configuration to the extendProvider extenders
nicosantangelo May 19, 2023
fd17e6e
Supply the network name to the extendProvider extenders
nicosantangelo May 19, 2023
6362de0
Add a way to access the wrapped provider and to initialize it
nicosantangelo May 23, 2023
7d08583
Only initialize the provider once on init
nicosantangelo May 23, 2023
83b0c48
Handle concurrent calls to init()
fvictorio May 24, 2023
76948e4
Use done callback in sendAsync tests
fvictorio May 24, 2023
4ac2e52
Rename LazyInitializationProvider to LazyInitializationProviderAdapter
nicosantangelo May 24, 2023
6223bd6
Update comment
nicosantangelo May 24, 2023
2d42b3a
Make this a minor change instead of patch
fvictorio May 25, 2023
a60b1cd
More explicit support for non-async provider extenders
nicosantangelo May 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix linting errors
  • Loading branch information
nicosantangelo committed May 18, 2023
commit 53fd5fa5c2c38a3b0d7c53a226e57e739a56f964
8 changes: 4 additions & 4 deletions packages/hardhat-core/test/internal/core/providers/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ export class EthereumMockedProvider
extends EventEmitter
implements EthereumProvider
{
public async request(args: RequestArguments): Promise<any> {}
public async request(_args: RequestArguments): Promise<any> {}

async send(method: string, params: any[] = []) {}
public async send(_method: string, _params: any[] = []) {}

sendAsync(
payload: JsonRpcRequest,
public sendAsync(
_payload: JsonRpcRequest,
callback: (error: any, response: JsonRpcResponse) => void
) {
callback(null, {} as JsonRpcRequest); // this is here just to finish the "async" operation
Expand Down