From 6c7f8edd7a7063d2abada5bb1ee3188e7806f26f Mon Sep 17 00:00:00 2001 From: Swirlds Automation <52682028+swirlds-automation@users.noreply.github.com> Date: Wed, 26 Jun 2024 02:45:56 +1000 Subject: [PATCH] build(deps): [Snyk] Upgrade @hashgraph/hedera-local from 2.23.0 to 2.26.2 (#2558) * fix: upgrade @hashgraph/hedera-local from 2.23.0 to 2.25.0 Snyk has created this PR to upgrade @hashgraph/hedera-local from 2.23.0 to 2.25.0. See this package in npm: @hashgraph/hedera-local See this project in Snyk: https://app.snyk.io/org/json-rpc-relay/project/bdb2179b-5ce8-4cf3-8b32-a42cc27e3d62?utm_source=github&utm_medium=referral&page=upgrade-pr Signed-off-by: Logan Nguyen * fix: Rebuilt package-lock.json Signed-off-by: ebadiere Signed-off-by: Logan Nguyen * fix: upgrade @hashgraph/hedera-local from 2.25.0 to 2.26.2 Signed-off-by: Logan Nguyen * fix: Turned off should not return contract bytecode after sefldestruct, until it can be refactored. Signed-off-by: ebadiere --------- Signed-off-by: Logan Nguyen Signed-off-by: ebadiere Co-authored-by: snyk-bot Co-authored-by: ebadiere Co-authored-by: Logan Nguyen --- package-lock.json | 129 +++++++++--------- package.json | 2 +- .../tests/acceptance/rpc_batch2.spec.ts | 4 +- 3 files changed, 68 insertions(+), 67 deletions(-) diff --git a/package-lock.json b/package-lock.json index 586f096858..f9c94de91d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "": { "name": "root", "dependencies": { - "@hashgraph/hedera-local": "^2.24.0", + "@hashgraph/hedera-local": "^2.26.2", "@open-rpc/schema-utils-js": "^1.16.1", "@types/find-config": "^1.0.4", "@types/sinon": "^10.0.20", @@ -2107,19 +2107,18 @@ } }, "node_modules/@hashgraph/hedera-local": { - "version": "2.24.0", - "resolved": "https://registry.npmjs.org/@hashgraph/hedera-local/-/hedera-local-2.24.0.tgz", - "integrity": "sha512-s74mOSg9gmOMma6MAVpo8AUFV3v7ErXun+As6FY0lb1+R19dAT5vHMe0YRkrG+qcifoUIwrVid2o99RiTPiDTQ==", - "license": "Apache-2.0", + "version": "2.26.2", + "resolved": "https://registry.npmjs.org/@hashgraph/hedera-local/-/hedera-local-2.26.2.tgz", + "integrity": "sha512-bLp8bQ/VnR3hjzqMZvg850NzGmyTQRAmilZMqB34lww+GkVB9QkcoddvmcrnD8Ctyzxu/u/RIIaWB0G2vjtATA==", "dependencies": { - "@hashgraph/sdk": "^2.43.0", + "@hashgraph/sdk": "2.43.0", "blessed": "^0.1.81", "blessed-terminal": "^0.1.22", "csv-parser": "^3.0.0", "detect-port": "^1.5.1", "dockerode": "^4.0.2", "dotenv": "^16.4.5", - "ethers": "^6.11.1", + "ethers": "^6.13.0", "js-yaml": "^4.1.0", "rimraf": "^5.0.5", "semver": "^7.6.0", @@ -2161,9 +2160,9 @@ } }, "node_modules/@hashgraph/hedera-local/node_modules/ethers": { - "version": "6.11.1", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.11.1.tgz", - "integrity": "sha512-mxTAE6wqJQAbp5QAe/+o+rXOID7Nw91OZXvgpjDa1r4fAbq2Nu314oEZSbjoRLacuCzs7kUC3clEvkCQowffGg==", + "version": "6.13.1", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.1.tgz", + "integrity": "sha512-hdJ2HOxg/xx97Lm9HdCWk949BfYqYWpyw4//78SiwOLgASyfrNszfMUNB2joKjvGUdwhHfaiMMFFwacVVoLR9A==", "funding": [ { "type": "individual", @@ -2181,7 +2180,7 @@ "@types/node": "18.15.13", "aes-js": "4.0.0-beta.5", "tslib": "2.4.0", - "ws": "8.5.0" + "ws": "8.17.1" }, "engines": { "node": ">=14.0.0" @@ -2271,15 +2270,15 @@ "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" }, "node_modules/@hashgraph/hedera-local/node_modules/ws": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz", - "integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", "engines": { "node": ">=10.0.0" }, "peerDependencies": { "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "utf-8-validate": ">=5.0.2" }, "peerDependenciesMeta": { "bufferutil": { @@ -5710,11 +5709,11 @@ } }, "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "dependencies": { - "fill-range": "^7.1.1" + "fill-range": "^7.0.1" }, "engines": { "node": ">=8" @@ -8871,9 +8870,9 @@ } }, "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -17497,9 +17496,9 @@ } }, "node_modules/redis-memory-server/node_modules/jackspeak": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.1.2.tgz", - "integrity": "sha512-kWmLKn2tRtfYMF/BakihVVRzBKOxz4gJMiL2Rj91WnAB5TPZumSH99R/Yf1qE1u4uRimvCSJfm6hnxohXeEXjQ==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.2.5.tgz", + "integrity": "sha512-a1hopwtr4NawFIrSmFgufzrN1Qy2BAfMJ0yScJBs/olJhTcctCy3YIDx4hTY2DOTJD1pUMTly80kmlYZxjZr5w==", "dev": true, "dependencies": { "@isaacs/cliui": "^8.0.2" @@ -20820,9 +20819,9 @@ } }, "packages/relay/node_modules/ethers": { - "version": "6.12.2", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.12.2.tgz", - "integrity": "sha512-MNfR2kzZyNF8bRNDSmjM+rT1+yqCgYNqfrXyNnpiNId2MQPiAOOr/7lrgdrdwoBxzKPSnSYZaGb5lcNyvzhuvA==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", + "integrity": "sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==", "funding": [ { "type": "individual", @@ -21160,9 +21159,9 @@ } }, "packages/server/node_modules/ethers": { - "version": "6.12.2", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.12.2.tgz", - "integrity": "sha512-MNfR2kzZyNF8bRNDSmjM+rT1+yqCgYNqfrXyNnpiNId2MQPiAOOr/7lrgdrdwoBxzKPSnSYZaGb5lcNyvzhuvA==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", + "integrity": "sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==", "dev": true, "funding": [ { @@ -21518,9 +21517,9 @@ } }, "packages/ws-server/node_modules/ethers": { - "version": "6.12.2", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.12.2.tgz", - "integrity": "sha512-MNfR2kzZyNF8bRNDSmjM+rT1+yqCgYNqfrXyNnpiNId2MQPiAOOr/7lrgdrdwoBxzKPSnSYZaGb5lcNyvzhuvA==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", + "integrity": "sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==", "dev": true, "funding": [ { @@ -23296,18 +23295,18 @@ } }, "@hashgraph/hedera-local": { - "version": "2.24.0", - "resolved": "https://registry.npmjs.org/@hashgraph/hedera-local/-/hedera-local-2.24.0.tgz", - "integrity": "sha512-s74mOSg9gmOMma6MAVpo8AUFV3v7ErXun+As6FY0lb1+R19dAT5vHMe0YRkrG+qcifoUIwrVid2o99RiTPiDTQ==", + "version": "2.26.2", + "resolved": "https://registry.npmjs.org/@hashgraph/hedera-local/-/hedera-local-2.26.2.tgz", + "integrity": "sha512-bLp8bQ/VnR3hjzqMZvg850NzGmyTQRAmilZMqB34lww+GkVB9QkcoddvmcrnD8Ctyzxu/u/RIIaWB0G2vjtATA==", "requires": { - "@hashgraph/sdk": "^2.43.0", + "@hashgraph/sdk": "2.43.0", "blessed": "^0.1.81", "blessed-terminal": "^0.1.22", "csv-parser": "^3.0.0", "detect-port": "^1.5.1", "dockerode": "^4.0.2", "dotenv": "^16.4.5", - "ethers": "^6.11.1", + "ethers": "^6.13.0", "js-yaml": "^4.1.0", "rimraf": "^5.0.5", "semver": "^7.5.3", @@ -23343,9 +23342,9 @@ } }, "ethers": { - "version": "6.11.1", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.11.1.tgz", - "integrity": "sha512-mxTAE6wqJQAbp5QAe/+o+rXOID7Nw91OZXvgpjDa1r4fAbq2Nu314oEZSbjoRLacuCzs7kUC3clEvkCQowffGg==", + "version": "6.13.1", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.1.tgz", + "integrity": "sha512-hdJ2HOxg/xx97Lm9HdCWk949BfYqYWpyw4//78SiwOLgASyfrNszfMUNB2joKjvGUdwhHfaiMMFFwacVVoLR9A==", "requires": { "@adraffy/ens-normalize": "1.10.1", "@noble/curves": "1.2.0", @@ -23353,7 +23352,7 @@ "@types/node": "18.15.13", "aes-js": "4.0.0-beta.5", "tslib": "2.4.0", - "ws": "8.5.0" + "ws": "8.17.1" } }, "foreground-child": { @@ -23404,9 +23403,9 @@ "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" }, "ws": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz", - "integrity": "sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", "requires": {} } } @@ -23512,9 +23511,9 @@ "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==" }, "ethers": { - "version": "6.12.2", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.12.2.tgz", - "integrity": "sha512-MNfR2kzZyNF8bRNDSmjM+rT1+yqCgYNqfrXyNnpiNId2MQPiAOOr/7lrgdrdwoBxzKPSnSYZaGb5lcNyvzhuvA==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", + "integrity": "sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==", "requires": { "@adraffy/ens-normalize": "1.10.1", "@noble/curves": "1.2.0", @@ -23788,9 +23787,9 @@ "dev": true }, "ethers": { - "version": "6.12.2", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.12.2.tgz", - "integrity": "sha512-MNfR2kzZyNF8bRNDSmjM+rT1+yqCgYNqfrXyNnpiNId2MQPiAOOr/7lrgdrdwoBxzKPSnSYZaGb5lcNyvzhuvA==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", + "integrity": "sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==", "dev": true, "requires": { "@adraffy/ens-normalize": "1.10.1", @@ -24076,9 +24075,9 @@ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" }, "ethers": { - "version": "6.12.2", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.12.2.tgz", - "integrity": "sha512-MNfR2kzZyNF8bRNDSmjM+rT1+yqCgYNqfrXyNnpiNId2MQPiAOOr/7lrgdrdwoBxzKPSnSYZaGb5lcNyvzhuvA==", + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", + "integrity": "sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==", "dev": true, "requires": { "@adraffy/ens-normalize": "1.10.1", @@ -26925,11 +26924,11 @@ } }, "braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "requires": { - "fill-range": "^7.1.1" + "fill-range": "^7.0.1" } }, "bresenham": { @@ -29272,9 +29271,9 @@ } }, "fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "requires": { "to-regex-range": "^5.0.1" } @@ -35579,9 +35578,9 @@ } }, "jackspeak": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.1.2.tgz", - "integrity": "sha512-kWmLKn2tRtfYMF/BakihVVRzBKOxz4gJMiL2Rj91WnAB5TPZumSH99R/Yf1qE1u4uRimvCSJfm6hnxohXeEXjQ==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.2.5.tgz", + "integrity": "sha512-a1hopwtr4NawFIrSmFgufzrN1Qy2BAfMJ0yScJBs/olJhTcctCy3YIDx4hTY2DOTJD1pUMTly80kmlYZxjZr5w==", "dev": true, "requires": { "@isaacs/cliui": "^8.0.2", diff --git a/package.json b/package.json index ddf428b99d..e03b93f2d7 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "prepare": "husky install" }, "dependencies": { - "@hashgraph/hedera-local": "^2.24.0", + "@hashgraph/hedera-local": "^2.26.2", "@open-rpc/schema-utils-js": "^1.16.1", "@types/find-config": "^1.0.4", "@types/sinon": "^10.0.20", diff --git a/packages/server/tests/acceptance/rpc_batch2.spec.ts b/packages/server/tests/acceptance/rpc_batch2.spec.ts index 6810c2af55..ebc185fd78 100644 --- a/packages/server/tests/acceptance/rpc_batch2.spec.ts +++ b/packages/server/tests/acceptance/rpc_batch2.spec.ts @@ -789,7 +789,9 @@ describe('@api-batch-2 RPC Server Acceptance Tests', function () { expect(res).to.eq(EthImpl.emptyHex); }); - it('should not return contract bytecode after sefldestruct', async function () { + // Issue # 2619 https://github.com/hashgraph/hedera-json-rpc-relay/issues/2619 + // Refactor to consider HIP-868 + xit('should not return contract bytecode after sefldestruct', async function () { const bytecodeBefore = await relay.call('eth_getCode', [basicContractAddress, 'latest'], requestId); // @ts-ignore