-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
509 implement rpc methods high priority 5 (#543)
* feat: eth_subscribe for newHeads events * feat: adding a subscription manager to the provider * feat: adding multiple log subscriptions * feat: adding eth_unsubscribe method * fix: get best block in eth_subscribe * test: generate random hex * feat: adding provider poll instance stop listen * feat: updating the format of emitted events * test: erc20 contract logs * test: multiple log subscriptions * feat: implementation of eth_unsubscribe response * test: improving eth_unsubscribe tests * refactor: remove subscriptionHelper and add generateRandomHex to dataUtils * refactor: log events waiting in provider tests * test: updating timeout for asynchronous operations in provider tests * test: updating timeout for asynchronous operations in provider tests * refactor: improve provider blocks handling * fix: block number increment in provider * test: no provider error in eth_subscribe and eth_unsubscribe * refactor: type import for EventPoll and add contract creation test case * docs: removing 'to implement' comment for eth_subscribe and eth_unsubscribe * test: adding more expects on block subscription * refactor: renaming generateRandomHex to generateRandomHexOfLength * docs: renaming generateRandomHex to generateRandomHexOfLength --------- Co-authored-by: Rodolfo Pietro Calabrò <[email protected]>
- Loading branch information
1 parent
1144487
commit f5ee48d
Showing
21 changed files
with
1,159 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './contracts-module'; | ||
export * from './types.d'; | ||
export * from './model'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { ContractFactory } from './contract-factory'; | ||
export { Contract } from './contract'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const POLLING_INTERVAL = 5000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f5ee48d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Coverage
Summary