Skip to content

Commit

Permalink
feat(quorum-connector): implement validator interface on go-quorum-co…
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
outSH committed Mar 17, 2022
1 parent 6310684 commit d35d871
Show file tree
Hide file tree
Showing 29 changed files with 2,926 additions and 56 deletions.
3 changes: 3 additions & 0 deletions packages/cactus-plugin-ledger-connector-quorum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
"axios": "0.21.4",
"express": "4.17.1",
"prom-client": "13.2.0",
"rxjs": "7.3.0",
"sanitize-html": "2.7.0",
"typescript-optional": "2.0.1",
"web3": "1.5.2",
"web3-eth-contract": "1.5.2"
Expand All @@ -67,6 +69,7 @@
"@hyperledger/cactus-plugin-keychain-memory": "1.0.0",
"@hyperledger/cactus-test-tooling": "1.0.0",
"@types/express": "4.17.13",
"@types/sanitize-html": "2.6.2",
"web3-eth": "1.5.2"
},
"engines": {
Expand Down
Loading

0 comments on commit d35d871

Please sign in to comment.