-
Notifications
You must be signed in to change notification settings - Fork 295
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
test(connector-go-ethereum-socketio): add functional test, bug fix #2053
test(connector-go-ethereum-socketio): add functional test, bug fix #2053
Conversation
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
- Upgrade web3 package used by go-ethereum-socketio connector from "0.20.7" to "1.7.3" - Major cleanup and refactor of go-ethereum-socketio logic, without affecting the current functionalities. - Add safety checking of method called in web3Eth and contract functions. Add tests to check if it works. - Add websocket eth RPC support and some helper functions in openethereum-test-ledger. - Expose WS RPC in geth-testnet, use this port in sample apps (required to monitor new blocks in updated web3.js) - Change raw use of sendRawTransaction to sendSignedTransaction in sample apps in order to conform to new web3.js version. - Add safeStringifyException to cactus-common that can be used by validators to sanitize response errors. - Refactor socketio-based validators to use safeStringifyException. - Adjust connector README files. Closes hyperledger-cacti#2088 Depends on hyperledger-cacti#2053 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
@petermetz @jagpreetsinghsasan @izuru0 |
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
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
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.
Apologies for the slow reviews once again.
packages/cactus-common/src/main/typescript/verifier/jwt-message-authentication.ts
Outdated
Show resolved
Hide resolved
This PR/issue depends on: |
4b53da6
to
9a62d4a
Compare
@petermetz Rebased with main and tested - ready to merge |
packages/cactus-test-tooling/src/main/typescript/openethereum/openethereum-test-ledger.ts
Outdated
Show resolved
Hide resolved
packages/cactus-test-tooling/src/main/typescript/openethereum/openethereum-test-ledger.ts
Outdated
Show resolved
Hide resolved
9a62d4a
to
b5b4274
Compare
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
- Add functional test of all functions from go-ethereum-socketio validator. - Refactor go-ethereum validator to allow importing as a module, to simplify the functional test. - Fix sendRawTransaction to work with Verifier protocol. It couldn't be reached by any client library until now, so I consider this as "private" interface. - Add common web3 client object in openethereum test ledger helper class. - Add few new functions to ethereum test ledger helper class: newEthPersonalAccount, transferAssetFromCoinbase, deployContract. Depends on hyperledger-cacti#2051 Depends on hyperledger-cacti#2047 Closes: hyperledger-cacti#2052 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
b5b4274
to
c1d5cd0
Compare
- Upgrade web3 package used by go-ethereum-socketio connector from "0.20.7" to "1.8.1" - Major cleanup and refactor of go-ethereum-socketio logic, without affecting the current functionalities. - Add safety checking of method called in web3Eth and contract functions. Add tests to check if it works. - Add websocket eth RPC support and some helper functions in openethereum-test-ledger. - Expose WS RPC in geth-testnet, use this port in sample apps (required to monitor new blocks in updated web3.js) - Change raw use of sendRawTransaction to sendSignedTransaction in sample apps in order to conform to new web3.js version. - Add safeStringifyException to cactus-common that can be used by validators to sanitize response errors. - Refactor socketio-based validators to use safeStringifyException. - Adjust connector README files. - Improve cleanup after running sample apps - Fix discounted-cartrade sample ethereum transfer and checking Closes hyperledger-cacti#2088 Depends on hyperledger-cacti#2053 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
- Upgrade web3 package used by go-ethereum-socketio connector from "0.20.7" to "1.8.1" - Major cleanup and refactor of go-ethereum-socketio logic, without affecting the current functionalities. - Add safety checking of method called in web3Eth and contract functions. Add tests to check if it works. - Add websocket eth RPC support and some helper functions in openethereum-test-ledger. - Expose WS RPC in geth-testnet, use this port in sample apps (required to monitor new blocks in updated web3.js) - Change raw use of sendRawTransaction to sendSignedTransaction in sample apps in order to conform to new web3.js version. - Add safeStringifyException to cactus-common that can be used by validators to sanitize response errors. - Refactor socketio-based validators to use safeStringifyException. - Adjust connector README files. - Improve cleanup after running sample apps - Fix discounted-cartrade sample ethereum transfer and checking Closes hyperledger-cacti#2088 Depends on hyperledger-cacti#2053 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
- Upgrade web3 package used by go-ethereum-socketio connector from "0.20.7" to "1.8.1" - Major cleanup and refactor of go-ethereum-socketio logic, without affecting the current functionalities. - Add safety checking of method called in web3Eth and contract functions. Add tests to check if it works. - Add websocket eth RPC support and some helper functions in openethereum-test-ledger. - Expose WS RPC in geth-testnet, use this port in sample apps (required to monitor new blocks in updated web3.js) - Change raw use of sendRawTransaction to sendSignedTransaction in sample apps in order to conform to new web3.js version. - Add safeStringifyException to cactus-common that can be used by validators to sanitize response errors. - Refactor socketio-based validators to use safeStringifyException. - Adjust connector README files. - Improve cleanup after running sample apps - Fix discounted-cartrade sample ethereum transfer and checking Closes hyperledger-cacti#2088 Depends on hyperledger-cacti#2053 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
- Upgrade web3 package used by go-ethereum-socketio connector from "0.20.7" to "1.8.1" - Major cleanup and refactor of go-ethereum-socketio logic, without affecting the current functionalities. - Add safety checking of method called in web3Eth and contract functions. Add tests to check if it works. - Add websocket eth RPC support and some helper functions in openethereum-test-ledger. - Expose WS RPC in geth-testnet, use this port in sample apps (required to monitor new blocks in updated web3.js) - Change raw use of sendRawTransaction to sendSignedTransaction in sample apps in order to conform to new web3.js version. - Add safeStringifyException to cactus-common that can be used by validators to sanitize response errors. - Refactor socketio-based validators to use safeStringifyException. - Adjust connector README files. - Improve cleanup after running sample apps - Fix discounted-cartrade sample ethereum transfer and checking Closes #2088 Depends on #2053 Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
It couldn't be reached by any client library until now, so I consider this as "private" interface.
newEthPersonalAccount, transferAssetFromCoinbase, deployContract.
Depends on #2051
Depends on #2047
Closes: #2052
Signed-off-by: Michal Bajer michal.bajer@fujitsu.com
Please consider only the last commit -
test(connector-go-ethereum-socketio): add functional test, bug fix
. The rest are the dependencies that should be merged by separate PRs.