-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(quorum-connector): implement validator interface on go-quorum-connector #1933
Conversation
@petermetz @izuru0 @takeutak Please review (only the last commit) |
I've updated quorum ledger plugin readme as requested by @izuru0:
Running containers doesn't work though because of missing I've also changed dockerfile to use upstream |
packages/cactus-plugin-ledger-connector-quorum/src/main/json/openapi.json
Show resolved
Hide resolved
packages/cactus-plugin-ledger-connector-quorum/src/main/json/openapi.json
Outdated
Show resolved
Hide resolved
packages/cactus-plugin-ledger-connector-quorum/src/main/json/openapi.json
Show resolved
Hide resolved
.../cactus-plugin-ledger-connector-quorum/src/main/typescript/plugin-ledger-connector-quorum.ts
Outdated
Show resolved
Hide resolved
.../cactus-plugin-ledger-connector-quorum/src/main/typescript/plugin-ledger-connector-quorum.ts
Outdated
Show resolved
Hide resolved
.../cactus-plugin-ledger-connector-quorum/src/main/typescript/plugin-ledger-connector-quorum.ts
Outdated
Show resolved
Hide resolved
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.
LGTM
@petermetz Thanks for the detailed review, appreciate it :) I've added fixes in a separate commit for easier review fix: fixing code review issues, will squash it once the PR is ready to merge. |
@outSH My pleasure and thank you for the separate commits, that does make it easier! It's LGTM now so please squash+rebase prior merging. |
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.
@outSH LGTM
@petermetz Thanks! :) As for CodeQL, I've wrote an explanation in notes already that I don't think I can solve them :( I've seen on my branch that similar issue already occurs here and in some other modules, so I assume it was ignored there. The problem is most probably false positive at this point, since all execution paths are checked (please review the affected functions in the connector to be sure) |
This PR/issue depends on: |
@petermetz OK, I've rebased and cleared the commit history. Can you review the CodeQL related message I wrote earlier and merge if possible? |
.../cactus-plugin-ledger-connector-quorum/src/main/typescript/plugin-ledger-connector-quorum.ts
Show resolved
Hide resolved
.../cactus-plugin-ledger-connector-quorum/src/main/typescript/plugin-ledger-connector-quorum.ts
Show resolved
Hide resolved
…nnector Add three new endpoints to quorum ledger connector achieve legacy verifier compatibility. InvokeRawWeb3EthContractEndpoint can be used to form any call to deployed contract. InvokeRawWeb3EthMethodEndpoint can be used to call any web3.eth function. Both are marked as low-level functions, should be used only when there's no designated endpoint for given functionality yet. WatchBlocksV1Endpoint can be used to monitor new block headers / data from the ledger. Type of the output is determined from input option flag. Extend QuorumApiClient to support Verifier interface, that is: block monitoring, and sending sync/async requests. Sending requests is marked as deprecated, because user can use direct REST calls from generated ApiClient, nevertheless this API was requested by one of the teams. Added functional tests for two new, request based endpoints. Moved verifier-besu integration test to besu-test package. Added verifier-quorum integration test, it supplements direct endpoint tests and provides a reference for API usage. Added support for QuorumApiClient in Verifier. Closes: hyperledger-cacti#1604 Signed-off-by: Michal Bajer <[email protected]>
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.
@outSH LGTM, thank you!
InvokeRawWeb3EthContractEndpoint
can be used to form any call to deployed contract.InvokeRawWeb3EthMethodEndpoint
can be used to call any web3.eth function. Both are marked as low-level functions, should be used only when there's no designated endpoint for given functionality yet.WatchBlocksV1Endpoint
can be used to monitor new block headers / data from the ledger. Type of the output is determined from input option flag.QuorumApiClient
to support Verifier interface, that is: block monitoring, and sending sync/async requests. Sending requests is marked as deprecated, because user can use direct REST calls from generated ApiClient, nevertheless this API was requested by one of the teams.QuorumApiClient
in Verifier.Closes: #1604
Signed-off-by: Michal Bajer [email protected]
Notes
Depends on #1928
Depends on #1926