Refactors static methods in the contract-sdk to allow for a staking contract instance to passed which allows for client re use during connection logic.
Refactors internal RPC client creation to use JsonRpcBatchProvider to allow for implicit batching of rpc requests
Refactors _runHandshakeWithBootstrapUrls to no longer await each call to handshakeAndVerifyAtestation
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Tested with local-tests
Checklist:
[x] My code follows the style guidelines of this project
[x] have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
Description
Refactors static methods in the
contract-sdk
to allow for a staking contract instance to passed which allows for client re use during connection logic.Refactors internal RPC client creation to use
JsonRpcBatchProvider
to allow for implicit batching of rpc requestsRefactors
_runHandshakeWithBootstrapUrls
to no longer await each call tohandshakeAndVerifyAtestation
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Tested with
local-tests
Checklist: