diff --git a/packages/cactus-cmd-socketio-server/src/test/typescript/unit/cmd-socketio-blp-plugin.test.ts b/packages/cactus-cmd-socketio-server/src/test/typescript/unit/cmd-socketio-blp-plugin.test.ts index fd600748c8..57b19ef255 100644 --- a/packages/cactus-cmd-socketio-server/src/test/typescript/unit/cmd-socketio-blp-plugin.test.ts +++ b/packages/cactus-cmd-socketio-server/src/test/typescript/unit/cmd-socketio-blp-plugin.test.ts @@ -26,7 +26,7 @@ const mockAppConfig = { }, ], logLevel: sutLogLevel, - applicationHostInfo: { hostName: "0.0.0.0", hostPort: 0 }, + applicationHostInfo: { hostName: "127.0.0.1", hostPort: 0 }, socketOptions: { rejectUnauthorized: false, reconnection: false, diff --git a/packages/cactus-plugin-keychain-azure-kv/src/test/typescript/integration/plugin-keychain-azure-kv.test.ts b/packages/cactus-plugin-keychain-azure-kv/src/test/typescript/integration/plugin-keychain-azure-kv.test.ts index 00af8f8cdc..7a4dd74e43 100644 --- a/packages/cactus-plugin-keychain-azure-kv/src/test/typescript/integration/plugin-keychain-azure-kv.test.ts +++ b/packages/cactus-plugin-keychain-azure-kv/src/test/typescript/integration/plugin-keychain-azure-kv.test.ts @@ -41,7 +41,7 @@ test("get,set,has,delete alters state as expected for AzureCredentialType.InMemo expressApp.use(bodyParser.json({ limit: "250mb" })); const server = http.createServer(expressApp); const listenOptions: IListenOptions = { - hostname: "0.0.0.0", + hostname: "127.0.0.1", port: 0, server, }; diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/benchmark/setup/geth-benchmark-env.ts b/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/benchmark/setup/geth-benchmark-env.ts index 2583387cdb..5ab53eb866 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/benchmark/setup/geth-benchmark-env.ts +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/benchmark/setup/geth-benchmark-env.ts @@ -113,7 +113,7 @@ export async function setupBenchmarkEnvironment( path: Constants.SocketIoConnectionPathV1, }); const addressInfo = (await Servers.listen({ - hostname: "0.0.0.0", + hostname: "127.0.0.1", port: 0, server: httpServer, })) as AddressInfo; diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-contract-deploy-and-invoke-using-json-object-v1.test.ts b/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-contract-deploy-and-invoke-using-json-object-v1.test.ts index c396b603a9..726d91f28a 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-contract-deploy-and-invoke-using-json-object-v1.test.ts +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-contract-deploy-and-invoke-using-json-object-v1.test.ts @@ -90,7 +90,7 @@ describe("Ethereum contract deploy and invoke using keychain tests", () => { await ledger.start(); const listenOptions: IListenOptions = { - hostname: "0.0.0.0", + hostname: "127.0.0.1", port: 0, server, }; diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-contract-deploy-and-invoke-using-keychain-v1.test.ts b/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-contract-deploy-and-invoke-using-keychain-v1.test.ts index 2c0e470017..40488ae634 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-contract-deploy-and-invoke-using-keychain-v1.test.ts +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-contract-deploy-and-invoke-using-keychain-v1.test.ts @@ -93,7 +93,7 @@ describe("Ethereum contract deploy and invoke using keychain tests", () => { await ledger.start(); const listenOptions: IListenOptions = { - hostname: "0.0.0.0", + hostname: "127.0.0.1", port: 0, server, }; diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-invoke-web3-method-v1.test.ts b/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-invoke-web3-method-v1.test.ts index 0d5e1e47f5..d2b8968f00 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-invoke-web3-method-v1.test.ts +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-invoke-web3-method-v1.test.ts @@ -85,7 +85,7 @@ describe("invokeRawWeb3EthMethod Tests", () => { }); const listenOptions: IListenOptions = { - hostname: "0.0.0.0", + hostname: "127.0.0.1", port: 0, server, }; diff --git a/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-transact-and-gas-fees.test.ts b/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-transact-and-gas-fees.test.ts index e2ba4d7f04..668274459c 100644 --- a/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-transact-and-gas-fees.test.ts +++ b/packages/cactus-plugin-ledger-connector-ethereum/src/test/typescript/integration/geth-transact-and-gas-fees.test.ts @@ -74,7 +74,7 @@ describe("Running ethereum transactions with different gas configurations", () = await ledger.start(); const listenOptions: IListenOptions = { - hostname: "0.0.0.0", + hostname: "127.0.0.1", port: 0, server, }; diff --git a/packages/cactus-plugin-ledger-connector-quorum/src/test/typescript/integration/plugin-ledger-connector-quorum/deploy-contract/v2.3.0-deploy-contract-from-json.test.ts b/packages/cactus-plugin-ledger-connector-quorum/src/test/typescript/integration/plugin-ledger-connector-quorum/deploy-contract/v2.3.0-deploy-contract-from-json.test.ts index 868b2a7afc..3c39f23598 100644 --- a/packages/cactus-plugin-ledger-connector-quorum/src/test/typescript/integration/plugin-ledger-connector-quorum/deploy-contract/v2.3.0-deploy-contract-from-json.test.ts +++ b/packages/cactus-plugin-ledger-connector-quorum/src/test/typescript/integration/plugin-ledger-connector-quorum/deploy-contract/v2.3.0-deploy-contract-from-json.test.ts @@ -107,7 +107,7 @@ describe(testCase, () => { await ledger.start(); const listenOptions: IListenOptions = { - hostname: "0.0.0.0", + hostname: "127.0.0.1", port: 0, server, }; diff --git a/packages/cactus-plugin-ledger-connector-sawtooth/src/test/typescript/integration/sawtooth-monitoring-endpoints.test.ts b/packages/cactus-plugin-ledger-connector-sawtooth/src/test/typescript/integration/sawtooth-monitoring-endpoints.test.ts index da7acc1024..19a117b277 100644 --- a/packages/cactus-plugin-ledger-connector-sawtooth/src/test/typescript/integration/sawtooth-monitoring-endpoints.test.ts +++ b/packages/cactus-plugin-ledger-connector-sawtooth/src/test/typescript/integration/sawtooth-monitoring-endpoints.test.ts @@ -171,7 +171,7 @@ describe("Sawtooth monitoring endpoints tests", () => { log.info("Setup ApiServer..."); const listenOptions: IListenOptions = { - hostname: "0.0.0.0", + hostname: "127.0.0.1", port: 0, server, }; diff --git a/packages/cactus-plugin-persistence-ethereum/src/test/typescript/integration/persistence-ethereum-functional.test.ts b/packages/cactus-plugin-persistence-ethereum/src/test/typescript/integration/persistence-ethereum-functional.test.ts index 911ad6ef03..1be694048c 100644 --- a/packages/cactus-plugin-persistence-ethereum/src/test/typescript/integration/persistence-ethereum-functional.test.ts +++ b/packages/cactus-plugin-persistence-ethereum/src/test/typescript/integration/persistence-ethereum-functional.test.ts @@ -282,7 +282,7 @@ describe("Ethereum persistence plugin tests", () => { defaultAccountAddress = account.address; const addressInfo = (await Servers.listen({ - hostname: "0.0.0.0", + hostname: "127.0.0.1", port: 0, server: connectorServer, })) as AddressInfo; diff --git a/packages/cactus-test-plugin-htlc-eth-besu-erc20/src/test/typescript/integration/plugin-htlc-eth-besu-erc20/withdraw-endpoint-invalid-id.test.ts b/packages/cactus-test-plugin-htlc-eth-besu-erc20/src/test/typescript/integration/plugin-htlc-eth-besu-erc20/withdraw-endpoint-invalid-id.test.ts index 3351277bb9..ce0f1f4132 100644 --- a/packages/cactus-test-plugin-htlc-eth-besu-erc20/src/test/typescript/integration/plugin-htlc-eth-besu-erc20/withdraw-endpoint-invalid-id.test.ts +++ b/packages/cactus-test-plugin-htlc-eth-besu-erc20/src/test/typescript/integration/plugin-htlc-eth-besu-erc20/withdraw-endpoint-invalid-id.test.ts @@ -97,7 +97,7 @@ describe(testCase, () => { await besuTestLedger.start(); const listenOptions: IListenOptions = { - hostname: "0.0.0.0", + hostname: "127.0.0.1", port: 0, server, }; diff --git a/packages/cactus-test-plugin-htlc-eth-besu-erc20/src/test/typescript/integration/plugin-htlc-eth-besu-erc20/withdraw-endpoint.test.ts b/packages/cactus-test-plugin-htlc-eth-besu-erc20/src/test/typescript/integration/plugin-htlc-eth-besu-erc20/withdraw-endpoint.test.ts index b8aac2544e..8d1faf6fe7 100644 --- a/packages/cactus-test-plugin-htlc-eth-besu-erc20/src/test/typescript/integration/plugin-htlc-eth-besu-erc20/withdraw-endpoint.test.ts +++ b/packages/cactus-test-plugin-htlc-eth-besu-erc20/src/test/typescript/integration/plugin-htlc-eth-besu-erc20/withdraw-endpoint.test.ts @@ -88,7 +88,7 @@ describe(testCase, () => { expressApp.use(bodyParser.json({ limit: "250mb" })); server = http.createServer(expressApp); const listenOptions: IListenOptions = { - hostname: "0.0.0.0", + hostname: "127.0.0.1", port: 0, server, }; diff --git a/packages/cactus-test-verifier-client/package.json b/packages/cactus-test-verifier-client/package.json index 19caf8577b..4a8f592f16 100644 --- a/packages/cactus-test-verifier-client/package.json +++ b/packages/cactus-test-verifier-client/package.json @@ -42,22 +42,27 @@ "dist/*" ], "scripts": { - "stress-test": "node --expose-gc --no-opt dist/main/typescript/verifier-with-go-eth-stress-check.js", - "stress-test-inspect": "node --expose-gc --inspect-brk --no-opt dist/main/typescript/verifier-with-go-eth-stress-check.js" + "stress-test": "node --expose-gc --no-opt dist/lib/main/typescript/verifier-with-go-eth-stress-check.js", + "stress-test-inspect": "node --expose-gc --inspect-brk --no-opt dist/lib/main/typescript/verifier-with-go-eth-stress-check.js" }, "dependencies": { - "@hyperledger/cactus-api-client": "2.0.0-alpha.2", - "@hyperledger/cactus-cmd-api-server": "2.0.0-alpha.2", "@hyperledger/cactus-common": "2.0.0-alpha.2", - "@hyperledger/cactus-plugin-ledger-connector-go-ethereum-socketio": "2.0.0-alpha.2", + "@hyperledger/cactus-core": "2.0.0-alpha.2", + "@hyperledger/cactus-core-api": "2.0.0-alpha.2", + "@hyperledger/cactus-plugin-ledger-connector-ethereum": "2.0.0-alpha.2", + "@hyperledger/cactus-test-geth-ledger": "2.0.0-alpha.2", "@hyperledger/cactus-test-tooling": "2.0.0-alpha.2", "@hyperledger/cactus-verifier-client": "2.0.0-alpha.2", + "body-parser": "1.20.2", + "express": "4.18.2", "log4js": "6.4.1", - "web3": "1.7.3", - "web3-core": "1.7.3" + "socket.io": "4.5.4" }, "devDependencies": { - "@types/node": "14.18.54" + "@types/body-parser": "1.19.4", + "@types/express": "4.17.19", + "@types/node": "14.18.54", + "web3-eth-accounts": "4.0.3" }, "engines": { "node": ">=10", diff --git a/packages/cactus-test-verifier-client/src/main/typescript/verifier-with-go-eth-stress-check.ts b/packages/cactus-test-verifier-client/src/main/typescript/verifier-with-go-eth-stress-check.ts index 78019f39be..cd4a575809 100644 --- a/packages/cactus-test-verifier-client/src/main/typescript/verifier-with-go-eth-stress-check.ts +++ b/packages/cactus-test-verifier-client/src/main/typescript/verifier-with-go-eth-stress-check.ts @@ -1,6 +1,6 @@ /** * Stress test to detect possible memory leaks in cactus-verifier-client. - * Repeated requests are sent to go-ethereum validator (packages/cactus-plugin-ledger-connector-go-ethereum-socketio). + * Repeated requests are sent to ethereum validator (packages/cactus-plugin-ledger-connector-ethereum). * Run command: * node --expose-gc --no-opt dist/main/typescript/verifier-with-go-eth-stress-check.js */ @@ -10,34 +10,34 @@ const testLogLevel: LogLevelDesc = "info"; const sutLogLevel: LogLevelDesc = "info"; // Ledger settings -const imageName = "openethereum/openethereum"; -const imageVersion = "v3.3.5"; - -// ApiClient settings -const syncReqTimeout = 1000 * 10; // 10 seconds +const containerImageName = "ghcr.io/hyperledger/cacti-geth-all-in-one"; +const containerImageVersion = "2023-07-27-2a8c48ed6"; +import { PluginRegistry } from "@hyperledger/cactus-core"; import { LogLevelDesc, LoggerProvider, Logger, + IListenOptions, + Servers, } from "@hyperledger/cactus-common"; - -import { - OpenEthereumTestLedger, - pruneDockerAllIfGithubAction, -} from "@hyperledger/cactus-test-tooling"; - -import { SelfSignedPkiGenerator } from "@hyperledger/cactus-cmd-api-server"; -import { SocketIOApiClient } from "@hyperledger/cactus-api-client"; +import { Constants } from "@hyperledger/cactus-core-api"; +import { GethTestLedger } from "@hyperledger/cactus-test-geth-ledger"; import { - Verifier, - VerifierFactory, - VerifierFactoryConfig, -} from "@hyperledger/cactus-verifier-client"; - -import { Server as HttpsServer } from "https"; -import { Account } from "web3-core"; -import { appendFileSync, writeFileSync } from "fs"; + EthereumApiClient, + PluginLedgerConnectorEthereum, +} from "@hyperledger/cactus-plugin-ledger-connector-ethereum"; +import { pruneDockerAllIfGithubAction } from "@hyperledger/cactus-test-tooling"; +import { Verifier, VerifierFactory } from "@hyperledger/cactus-verifier-client"; + +import http from "http"; +import express from "express"; +import bodyParser from "body-parser"; +import { v4 as uuidV4 } from "uuid"; +import { Server as SocketIoServer } from "socket.io"; +import type { Web3Account } from "web3-eth-accounts"; +import { appendFileSync, writeFileSync } from "node:fs"; +import { AddressInfo } from "node:net"; // Logger setup const log: Logger = LoggerProvider.getOrCreate({ @@ -45,14 +45,26 @@ const log: Logger = LoggerProvider.getOrCreate({ level: testLogLevel, }); -let ledger: OpenEthereumTestLedger; -let connectorCertValue: string; -let connectorPrivKeyValue: string; -let connectorServer: HttpsServer; -let verifier: Verifier; -let constTestAcc: Account; +let ledger: GethTestLedger; +let connector: PluginLedgerConnectorEthereum; +let verifier: Verifier; +let constTestAcc: Web3Account; const constTestAccBalance = 5 * 1000000; +const expressApp = express(); +expressApp.use(bodyParser.json({ limit: "250mb" })); +const server = http.createServer(expressApp); +const wsApi = new SocketIoServer(server, { + path: Constants.SocketIoConnectionPathV1, +}); +// Add custom replacer to handle bigint responses correctly +expressApp.set("json replacer", (_key: string, value: bigint | unknown) => { + if (typeof value === "bigint") { + return value.toString(); + } + return value; +}); + /** * Check current memory usage, log it to the screen and write it to a file for future analysis. */ @@ -84,84 +96,51 @@ async function setupEnvironment(): Promise { log.info("Prune Docker..."); await pruneDockerAllIfGithubAction({ logLevel: testLogLevel }); - log.info(`Start Ledger ${imageName}:${imageVersion}...`); - ledger = new OpenEthereumTestLedger({ - imageName, - imageVersion, - emitContainerLogs: true, - logLevel: sutLogLevel, + log.info(`Start Ledger ${containerImageName}:${containerImageVersion}...`); + ledger = new GethTestLedger({ + containerImageName, + containerImageVersion, }); await ledger.start(); const ledgerRpcUrl = await ledger.getRpcApiWebSocketHost(); log.info(`Ledger started, RPC: ${ledgerRpcUrl}`); - // Create Test Account - constTestAcc = await ledger.createEthTestAccount(constTestAccBalance); - - // Generate connector private key and certificate - const pkiGenerator = new SelfSignedPkiGenerator(); - const pki = pkiGenerator.create("localhost"); - connectorPrivKeyValue = pki.privateKeyPem; - connectorCertValue = pki.certificatePem; - const jwtAlgo = "RS512"; - - const connectorConfig: any = { - sslParam: { - port: 0, // random port - keyValue: connectorPrivKeyValue, - certValue: connectorCertValue, - jwtAlgo: jwtAlgo, - }, - logLevel: sutLogLevel, - ledgerUrl: ledgerRpcUrl, + const listenOptions: IListenOptions = { + hostname: "127.0.0.1", + port: 0, + server, }; - const configJson = JSON.stringify(connectorConfig); - log.debug("Connector Config:", configJson); - - log.info("Export connector config before loading the module..."); - process.env["NODE_CONFIG"] = configJson; + const addressInfo = (await Servers.listen(listenOptions)) as AddressInfo; + const { address, port } = addressInfo; + const apiHost = `http://${address}:${port}`; + connector = new PluginLedgerConnectorEthereum({ + instanceId: uuidV4(), + rpcApiWsHost: ledgerRpcUrl, + logLevel: testLogLevel, + pluginRegistry: new PluginRegistry({ plugins: [] }), + }); + await connector.getOrCreateWebServices(); + await connector.registerWebServices(expressApp, wsApi); - const conenctorModule = await import( - "@hyperledger/cactus-plugin-ledger-connector-go-ethereum-socketio" - ); - // Run the connector - connectorServer = await conenctorModule.startGoEthereumSocketIOConnector(); - const connectorAddress = connectorServer.address(); - if (!connectorAddress || typeof connectorAddress === "string") { - throw new Error("Unexpected go-ethereum connector AddressInfo type"); - } - log.info( - "Go-Ethereum-SocketIO Connector started on:", - `${connectorAddress.address}:${connectorAddress.port}`, - ); + // Create Test Account + constTestAcc = await ledger.createEthTestAccount(constTestAccBalance); // Create Verifier - const ledgerPluginInfo: VerifierFactoryConfig = [ - { - validatorID: "go-eth-socketio-test", - validatorType: "legacy-socketio", - validatorURL: `https://localhost:${connectorAddress.port}`, - validatorKeyValue: connectorCertValue, - logLevel: sutLogLevel, - maxCounterRequestID: 1000, - syncFunctionTimeoutMillisecond: syncReqTimeout, - socketOptions: { - rejectUnauthorized: false, - reconnection: false, - timeout: syncReqTimeout * 2, + const ethereumValidatorId = "eth_openapi_connector"; + const verifierFactory = new VerifierFactory( + [ + { + validatorID: ethereumValidatorId, + validatorType: "ETH_1X", + basePath: apiHost, + logLevel: sutLogLevel, }, - ledgerInfo: { - ledgerAbstract: "Go-Ethereum Ledger", - }, - apiInfo: [], - }, - ]; - const verifierFactory = new VerifierFactory(ledgerPluginInfo); - verifier = verifierFactory.getVerifier( - "go-eth-socketio-test", - "legacy-socketio", + ], + sutLogLevel, ); + verifier = verifierFactory.getVerifier(ethereumValidatorId, "ETH_1X"); + // Clear the stress log file writeFileSync(STRESS_LOG_FILENAME, ""); } @@ -170,31 +149,27 @@ async function setupEnvironment(): Promise { * Cleanup the ledger and cactus connector */ async function cleanupEnvironment(): Promise { - log.info("FINISHING THE TESTS"); - - if (verifier) { - log.info("Close Verifier ApiClient connection..."); - verifier.ledgerApi.close(); + if (server) { + log.info("Shutdown the connector server..."); + await Servers.shutdown(server); } - // Report after verifier close - await new Promise((resolve) => setTimeout(resolve, 2000)); - checkMemory(); - - if (connectorServer) { - log.info("Stop the ethereum connector..."); - await new Promise((resolve) => - connectorServer.close(() => resolve()), - ); + if (connector) { + log.info("Shutdown the connector..."); + await connector.shutdown(); } if (ledger) { - log.info("Stop the ethereum ledger..."); + log.info("Stop and destroy the test ledger..."); await ledger.stop(); await ledger.destroy(); } - log.info("Prune Docker..."); + // Report after connector close + await new Promise((resolve) => setTimeout(resolve, 2000)); + checkMemory(); + + log.info("Prune docker..."); await pruneDockerAllIfGithubAction({ logLevel: testLogLevel }); } @@ -203,7 +178,7 @@ async function cleanupEnvironment(): Promise { */ async function executeTest(): Promise { // getNumericBalance input - const getBalanceMethod = { type: "function", command: "getNumericBalance" }; + const getBalanceMethod = { type: "web3Eth", command: "getBalance" }; const getBalanceArgs = { args: [constTestAcc.address], }; diff --git a/packages/cactus-test-verifier-client/tsconfig.json b/packages/cactus-test-verifier-client/tsconfig.json index 19994372ba..ee534b3a6d 100644 --- a/packages/cactus-test-verifier-client/tsconfig.json +++ b/packages/cactus-test-verifier-client/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "composite": true, "outDir": "./dist/lib", - "declarationDir": "dist/", + "declarationDir": "dist/lib", "resolveJsonModule": true, "rootDir": "./src", "tsBuildInfoFile": "../../.build-cache/cactus-test-verifier-client.tsbuildinfo" @@ -12,23 +12,27 @@ "./src" ], "references": [ + { "path": "../cactus-common/tsconfig.json" }, { - "path": "../cactus-test-tooling/tsconfig.json" + "path": "../cactus-core/tsconfig.json" }, { - "path": "../cactus-cmd-api-server/tsconfig.json" + "path": "../cactus-core-api/tsconfig.json" }, { - "path": "../cactus-api-client/tsconfig.json" + "path": "../cactus-plugin-ledger-connector-ethereum/tsconfig.json" }, { - "path": "../cactus-verifier-client/tsconfig.json" + "path": "../cactus-test-geth-ledger/tsconfig.json" + }, + { + "path": "../cactus-test-tooling/tsconfig.json" }, { - "path": "../cactus-plugin-ledger-connector-go-ethereum-socketio/tsconfig.json" + "path": "../cactus-verifier-client/tsconfig.json" } ] } \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 51dec3f109..47c09e2ec9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7662,7 +7662,7 @@ __metadata: languageName: unknown linkType: soft -"@hyperledger/cactus-plugin-ledger-connector-go-ethereum-socketio@2.0.0-alpha.2, @hyperledger/cactus-plugin-ledger-connector-go-ethereum-socketio@workspace:packages/cactus-plugin-ledger-connector-go-ethereum-socketio": +"@hyperledger/cactus-plugin-ledger-connector-go-ethereum-socketio@workspace:packages/cactus-plugin-ledger-connector-go-ethereum-socketio": version: 0.0.0-use.local resolution: "@hyperledger/cactus-plugin-ledger-connector-go-ethereum-socketio@workspace:packages/cactus-plugin-ledger-connector-go-ethereum-socketio" dependencies: @@ -8258,16 +8258,21 @@ __metadata: version: 0.0.0-use.local resolution: "@hyperledger/cactus-test-verifier-client@workspace:packages/cactus-test-verifier-client" dependencies: - "@hyperledger/cactus-api-client": 2.0.0-alpha.2 - "@hyperledger/cactus-cmd-api-server": 2.0.0-alpha.2 "@hyperledger/cactus-common": 2.0.0-alpha.2 - "@hyperledger/cactus-plugin-ledger-connector-go-ethereum-socketio": 2.0.0-alpha.2 + "@hyperledger/cactus-core": 2.0.0-alpha.2 + "@hyperledger/cactus-core-api": 2.0.0-alpha.2 + "@hyperledger/cactus-plugin-ledger-connector-ethereum": 2.0.0-alpha.2 + "@hyperledger/cactus-test-geth-ledger": 2.0.0-alpha.2 "@hyperledger/cactus-test-tooling": 2.0.0-alpha.2 "@hyperledger/cactus-verifier-client": 2.0.0-alpha.2 + "@types/body-parser": 1.19.4 + "@types/express": 4.17.19 "@types/node": 14.18.54 + body-parser: 1.20.2 + express: 4.18.2 log4js: 6.4.1 - web3: 1.7.3 - web3-core: 1.7.3 + socket.io: 4.5.4 + web3-eth-accounts: 4.0.3 languageName: unknown linkType: soft @@ -47865,17 +47870,6 @@ __metadata: languageName: node linkType: hard -"web3-bzz@npm:1.7.3": - version: 1.7.3 - resolution: "web3-bzz@npm:1.7.3" - dependencies: - "@types/node": ^12.12.6 - got: 9.6.0 - swarm-js: ^0.1.40 - checksum: cd4dddd51b445bd40d3e2fd57eba268d3cbc9d359e5b8ebd16735183135387f509923ff12ec5f0645a0faeaeed4ea7d4753385fdd289c74280cc774e89e5a56e - languageName: node - linkType: hard - "web3-bzz@npm:1.8.1": version: 1.8.1 resolution: "web3-bzz@npm:1.8.1" @@ -47937,16 +47931,6 @@ __metadata: languageName: node linkType: hard -"web3-core-helpers@npm:1.7.3": - version: 1.7.3 - resolution: "web3-core-helpers@npm:1.7.3" - dependencies: - web3-eth-iban: 1.7.3 - web3-utils: 1.7.3 - checksum: 8c02f7fe202f74f925a18cf6f32649df5caa3221cefc493a6a4fb554d43bece1b4dc7a4cb0952c9d8669a4766dfdafb6d6100a5f68d109b89cc7cf314ed59959 - languageName: node - linkType: hard - "web3-core-helpers@npm:1.8.1": version: 1.8.1 resolution: "web3-core-helpers@npm:1.8.1" @@ -48023,19 +48007,6 @@ __metadata: languageName: node linkType: hard -"web3-core-method@npm:1.7.3": - version: 1.7.3 - resolution: "web3-core-method@npm:1.7.3" - dependencies: - "@ethersproject/transactions": ^5.0.0-beta.135 - web3-core-helpers: 1.7.3 - web3-core-promievent: 1.7.3 - web3-core-subscriptions: 1.7.3 - web3-utils: 1.7.3 - checksum: cd1940676eb9ed6a28d172f9beaaccbb2021e831a19d690f9b50fa913a66be7bd8e85928c2a542c03f15ccdfb5dae63e43bcc8f04cd652b897233ae584a68d57 - languageName: node - linkType: hard - "web3-core-method@npm:1.8.1": version: 1.8.1 resolution: "web3-core-method@npm:1.8.1" @@ -48094,15 +48065,6 @@ __metadata: languageName: node linkType: hard -"web3-core-promievent@npm:1.7.3": - version: 1.7.3 - resolution: "web3-core-promievent@npm:1.7.3" - dependencies: - eventemitter3: 4.0.4 - checksum: a4784709f7c581bc3d74d996c80d764e95f73ebb30a7383f1af16bfc4c67e3c9fc0524962e48241fa180bce13d489b41f87a88f717e1009299ed0562612a0ad7 - languageName: node - linkType: hard - "web3-core-promievent@npm:1.8.1": version: 1.8.1 resolution: "web3-core-promievent@npm:1.8.1" @@ -48177,19 +48139,6 @@ __metadata: languageName: node linkType: hard -"web3-core-requestmanager@npm:1.7.3": - version: 1.7.3 - resolution: "web3-core-requestmanager@npm:1.7.3" - dependencies: - util: ^0.12.0 - web3-core-helpers: 1.7.3 - web3-providers-http: 1.7.3 - web3-providers-ipc: 1.7.3 - web3-providers-ws: 1.7.3 - checksum: fcee4c1280b621d9e50b339995295ece6a17b1de73b6e9acf490ea08037f3d3b39f0b2a339def4e470f5bbb2dec49634887089128cebb9b98da54e8f54b9a142 - languageName: node - linkType: hard - "web3-core-requestmanager@npm:1.8.1": version: 1.8.1 resolution: "web3-core-requestmanager@npm:1.8.1" @@ -48253,16 +48202,6 @@ __metadata: languageName: node linkType: hard -"web3-core-subscriptions@npm:1.7.3": - version: 1.7.3 - resolution: "web3-core-subscriptions@npm:1.7.3" - dependencies: - eventemitter3: 4.0.4 - web3-core-helpers: 1.7.3 - checksum: 6b524a9df78ded17313979508564b1246cec8df99849d77d87f6c8316d276f62744ef05663cdb130bae8c9ddab56e3a267091a9051418a035c537bf90bafea28 - languageName: node - linkType: hard - "web3-core-subscriptions@npm:1.8.1": version: 1.8.1 resolution: "web3-core-subscriptions@npm:1.8.1" @@ -48348,21 +48287,6 @@ __metadata: languageName: node linkType: hard -"web3-core@npm:1.7.3": - version: 1.7.3 - resolution: "web3-core@npm:1.7.3" - dependencies: - "@types/bn.js": ^4.11.5 - "@types/node": ^12.12.6 - bignumber.js: ^9.0.0 - web3-core-helpers: 1.7.3 - web3-core-method: 1.7.3 - web3-core-requestmanager: 1.7.3 - web3-utils: 1.7.3 - checksum: 2959ea9bb018e8346ef14456a46b4ad06e68529882be1d6059876f60c9feeda6d7acf6d4e4f4c8caa1b45a216c904860c4113fd93e499af64d637cd5787a7b60 - languageName: node - linkType: hard - "web3-core@npm:1.8.1": version: 1.8.1 resolution: "web3-core@npm:1.8.1" @@ -48539,16 +48463,6 @@ __metadata: languageName: node linkType: hard -"web3-eth-abi@npm:1.7.3": - version: 1.7.3 - resolution: "web3-eth-abi@npm:1.7.3" - dependencies: - "@ethersproject/abi": 5.0.7 - web3-utils: 1.7.3 - checksum: 878ace128ce24f8deca93e4656950b4e582a2dd2aac8d2d718ddf611429266a4b6e25b0afe5000a19ef3876cc786fa165c9be7752d60f49dd4659462a0bd2e79 - languageName: node - linkType: hard - "web3-eth-abi@npm:1.8.1": version: 1.8.1 resolution: "web3-eth-abi@npm:1.8.1" @@ -48698,25 +48612,6 @@ __metadata: languageName: node linkType: hard -"web3-eth-accounts@npm:1.7.3": - version: 1.7.3 - resolution: "web3-eth-accounts@npm:1.7.3" - dependencies: - "@ethereumjs/common": ^2.5.0 - "@ethereumjs/tx": ^3.3.2 - crypto-browserify: 3.12.0 - eth-lib: 0.2.8 - ethereumjs-util: ^7.0.10 - scrypt-js: ^3.0.1 - uuid: 3.3.2 - web3-core: 1.7.3 - web3-core-helpers: 1.7.3 - web3-core-method: 1.7.3 - web3-utils: 1.7.3 - checksum: 141edccc5ac4371f610f1436ecb1340a7cb2739b6298d772c732348631e01ef2060620b3cca7d43daac647a4b6cf84157f8fae6df921896642c6aa376449860b - languageName: node - linkType: hard - "web3-eth-accounts@npm:1.8.1": version: 1.8.1 resolution: "web3-eth-accounts@npm:1.8.1" @@ -48860,22 +48755,6 @@ __metadata: languageName: node linkType: hard -"web3-eth-contract@npm:1.7.3": - version: 1.7.3 - resolution: "web3-eth-contract@npm:1.7.3" - dependencies: - "@types/bn.js": ^4.11.5 - web3-core: 1.7.3 - web3-core-helpers: 1.7.3 - web3-core-method: 1.7.3 - web3-core-promievent: 1.7.3 - web3-core-subscriptions: 1.7.3 - web3-eth-abi: 1.7.3 - web3-utils: 1.7.3 - checksum: e5bdb00cdff0ad5d4282de52cf8046dcfc24df8a5f338075345cc50953d2387a3b9ea6ff505334ee62a09e6d8fe533d048891df2821069f902fa519120c1a7c7 - languageName: node - linkType: hard - "web3-eth-contract@npm:1.8.1": version: 1.8.1 resolution: "web3-eth-contract@npm:1.8.1" @@ -49016,22 +48895,6 @@ __metadata: languageName: node linkType: hard -"web3-eth-ens@npm:1.7.3": - version: 1.7.3 - resolution: "web3-eth-ens@npm:1.7.3" - dependencies: - content-hash: ^2.5.2 - eth-ens-namehash: 2.0.8 - web3-core: 1.7.3 - web3-core-helpers: 1.7.3 - web3-core-promievent: 1.7.3 - web3-eth-abi: 1.7.3 - web3-eth-contract: 1.7.3 - web3-utils: 1.7.3 - checksum: b079e72e27831a377078b9c3cccc2d30295667d03d368b10a061f8d36e445557d75dfd986ea5b170baf15964f2a1c42a77d78aebbe5d249f60f5eff3ed0efa10 - languageName: node - linkType: hard - "web3-eth-ens@npm:1.8.1": version: 1.8.1 resolution: "web3-eth-ens@npm:1.8.1" @@ -49166,16 +49029,6 @@ __metadata: languageName: node linkType: hard -"web3-eth-iban@npm:1.7.3": - version: 1.7.3 - resolution: "web3-eth-iban@npm:1.7.3" - dependencies: - bn.js: ^4.11.9 - web3-utils: 1.7.3 - checksum: 0e36167c63955f3e0481b99b3e2fa89246785678644cdb42c73ee013220182d06abad91ddc32e5c726fa7a06db17aace48ffc167cb1e3411530e441a6fbaa0cc - languageName: node - linkType: hard - "web3-eth-iban@npm:1.8.1": version: 1.8.1 resolution: "web3-eth-iban@npm:1.8.1" @@ -49278,20 +49131,6 @@ __metadata: languageName: node linkType: hard -"web3-eth-personal@npm:1.7.3": - version: 1.7.3 - resolution: "web3-eth-personal@npm:1.7.3" - dependencies: - "@types/node": ^12.12.6 - web3-core: 1.7.3 - web3-core-helpers: 1.7.3 - web3-core-method: 1.7.3 - web3-net: 1.7.3 - web3-utils: 1.7.3 - checksum: be938abdc281c14f8d6ef7c7e980def172ea5b28aa4c7b0d18e81452938fcc9d193bfa42006641ad13d60775af12954f98cd91c41f3aa11181386d5f551bbaec - languageName: node - linkType: hard - "web3-eth-personal@npm:1.8.1": version: 1.8.1 resolution: "web3-eth-personal@npm:1.8.1" @@ -49442,26 +49281,6 @@ __metadata: languageName: node linkType: hard -"web3-eth@npm:1.7.3": - version: 1.7.3 - resolution: "web3-eth@npm:1.7.3" - dependencies: - web3-core: 1.7.3 - web3-core-helpers: 1.7.3 - web3-core-method: 1.7.3 - web3-core-subscriptions: 1.7.3 - web3-eth-abi: 1.7.3 - web3-eth-accounts: 1.7.3 - web3-eth-contract: 1.7.3 - web3-eth-ens: 1.7.3 - web3-eth-iban: 1.7.3 - web3-eth-personal: 1.7.3 - web3-net: 1.7.3 - web3-utils: 1.7.3 - checksum: 5d7d1606b484098ff7943f132ef2c805c2fd2596386917e828f7ee8dbac3497cbc0a81df240e13ffb3289b59c9f72191a02e0f2636034b846b094d927821c7b3 - languageName: node - linkType: hard - "web3-eth@npm:1.8.1": version: 1.8.1 resolution: "web3-eth@npm:1.8.1" @@ -49583,17 +49402,6 @@ __metadata: languageName: node linkType: hard -"web3-net@npm:1.7.3": - version: 1.7.3 - resolution: "web3-net@npm:1.7.3" - dependencies: - web3-core: 1.7.3 - web3-core-method: 1.7.3 - web3-utils: 1.7.3 - checksum: 09b31ab30dc59650ee83d8752b753b18862522d372d3101acc620ed188792c46e844e363c55da06f64400e587f37f609381f353a862ef14b379decf48f36173b - languageName: node - linkType: hard - "web3-net@npm:1.8.1": version: 1.8.1 resolution: "web3-net@npm:1.8.1" @@ -49695,16 +49503,6 @@ __metadata: languageName: node linkType: hard -"web3-providers-http@npm:1.7.3": - version: 1.7.3 - resolution: "web3-providers-http@npm:1.7.3" - dependencies: - web3-core-helpers: 1.7.3 - xhr2-cookies: 1.1.0 - checksum: e1539a36aec1b8f49fd79e407086c96274f4d62f33646bc95b65a94ccad8cb15bc40f6040cddc1eb018bfc3199687d6a6b7c18f11bb8423f6e24b1567e1191e2 - languageName: node - linkType: hard - "web3-providers-http@npm:1.8.1": version: 1.8.1 resolution: "web3-providers-http@npm:1.8.1" @@ -49803,16 +49601,6 @@ __metadata: languageName: node linkType: hard -"web3-providers-ipc@npm:1.7.3": - version: 1.7.3 - resolution: "web3-providers-ipc@npm:1.7.3" - dependencies: - oboe: 2.1.5 - web3-core-helpers: 1.7.3 - checksum: 28e7dbc73dc6f32302d1a579c48682efa3584150042883e5e8b1774c1beab848ac16d3932c94bfb9af5aac6f1558d920c8672079e67e5aff03be9510506cb184 - languageName: node - linkType: hard - "web3-providers-ipc@npm:1.8.1": version: 1.8.1 resolution: "web3-providers-ipc@npm:1.8.1" @@ -49911,17 +49699,6 @@ __metadata: languageName: node linkType: hard -"web3-providers-ws@npm:1.7.3": - version: 1.7.3 - resolution: "web3-providers-ws@npm:1.7.3" - dependencies: - eventemitter3: 4.0.4 - web3-core-helpers: 1.7.3 - websocket: ^1.0.32 - checksum: 041427c34763579ed89f16de63e811de4cb502a43b4d120fe725cf33e879a7d104fca34093a18f6bb3a0b10596543e5905875377c1fed35f56ce86c5dae3475c - languageName: node - linkType: hard - "web3-providers-ws@npm:1.8.1": version: 1.8.1 resolution: "web3-providers-ws@npm:1.8.1" @@ -50056,18 +49833,6 @@ __metadata: languageName: node linkType: hard -"web3-shh@npm:1.7.3": - version: 1.7.3 - resolution: "web3-shh@npm:1.7.3" - dependencies: - web3-core: 1.7.3 - web3-core-method: 1.7.3 - web3-core-subscriptions: 1.7.3 - web3-net: 1.7.3 - checksum: c4b66aa9361d7dc2e66f88b106e1eae81587465ab85b3c31b9979c1247fa4e6cd7aa44d0e8c8411e26df51aa75ccd1c24efb11d87b5e8eef1beab241faf925a8 - languageName: node - linkType: hard - "web3-shh@npm:1.8.1": version: 1.8.1 resolution: "web3-shh@npm:1.8.1" @@ -50191,21 +49956,6 @@ __metadata: languageName: node linkType: hard -"web3-utils@npm:1.7.3": - version: 1.7.3 - resolution: "web3-utils@npm:1.7.3" - dependencies: - bn.js: ^4.11.9 - ethereum-bloom-filters: ^1.0.6 - ethereumjs-util: ^7.1.0 - ethjs-unit: 0.1.6 - number-to-bn: 1.7.0 - randombytes: ^2.1.0 - utf8: 3.0.0 - checksum: 96fd1d7310f4674ddccbd1f2f8e1ff1817b8869a67a1562ef3ce1130ae50dfec8e64fc4ce9f80855d87fa63fb6dd71b4561e5e1925be5b26f3787b0d4e5f89e7 - languageName: node - linkType: hard - "web3-utils@npm:1.8.1": version: 1.8.1 resolution: "web3-utils@npm:1.8.1" @@ -50366,21 +50116,6 @@ __metadata: languageName: node linkType: hard -"web3@npm:1.7.3": - version: 1.7.3 - resolution: "web3@npm:1.7.3" - dependencies: - web3-bzz: 1.7.3 - web3-core: 1.7.3 - web3-eth: 1.7.3 - web3-eth-personal: 1.7.3 - web3-net: 1.7.3 - web3-shh: 1.7.3 - web3-utils: 1.7.3 - checksum: a944c296e75bd9c5e95687754524561ca993663d0c57ca2e8da794b9e8de57d319522fa05ec3b06d98382cc9ba59a0b8f17eb092782aa849b4e8cecc7867522a - languageName: node - linkType: hard - "web3@npm:1.8.1": version: 1.8.1 resolution: "web3@npm:1.8.1"