-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implemented RPC Manager for RPC calls (#1260)
* feature: introduced RPC manager module * feat: Implemented RPCParameters for all contract calls * refactor: moved RPCParameters struct to RPC module * fix: added assetId parameter to getActiveStatus retry call * refactor: passed rpcParameters to Batch call functions instead of client * fix: path to assets.json and client parameter index fixed * refactor: tests/updated mocks * refactor: revert mainnet addresses change * fix: added ctx parameter in CheckTransactionReceipt * fix: revert chain Id and contract addresses change * fix: refreshed RPC list after confirm state every epoch * fix: added disputes contract call to the blockManager struct * refactor: fixed lint log error * reafctor: fixed tests * fix: calculated dynamically the path to endpoints.json file * fix: endpoints.json file to be picked from .razor directory instaed of repo * refactor: set up temp endpoints.json file for tests * feat: added importEndpoints command * refactor: removed alternateProvider functions and flag as its not required now * fix: switch to next client only if the connection is successful * feat: added state block check by introducing blockMonitor (#1262) * feat: introduced block monitor to keep track of blocks * refactor: removed global variables used in logger and added blockMonitor as a field * refactor: used refactored logger module * fix: fixed logger global instance * refactor: exported logrus instance field from logger struct * refactor: fixed tests * refactor: removed unwanted return variables in tests * refactor: added log for current best endpoint URL after every refresh * fix: added endpoint validation while switching endpoints * fix: added switched returned type while switching endpoints and removed staleBlockCallback field * refactor: used BestRPCClient from BestEndpoint * refactor: renamed RPC module to rpc * refactor: removed unwanted logs * refactor: corrected importEndpoints command info
- Loading branch information
Showing
143 changed files
with
4,555 additions
and
3,771 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
This file was deleted.
Oops, something went wrong.
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.