From a86bc870a9e0b7f8824df69f3e117c70bc3ca572 Mon Sep 17 00:00:00 2001 From: Eric Badiere Date: Mon, 1 Jul 2024 10:44:47 -0600 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20net=5Fversion=20now=20reads=20chainI?= =?UTF-8?q?d=20from=20config=20and=20return=20decimal=20val=E2=80=A6=20(#2?= =?UTF-8?q?645)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: net_version now reads chainId from config and return decimal value (#2633) * fix: net_version now reads chainId from config and return decimal value * fix: fixed regex pattern for postman test --------- Signed-off-by: Logan Nguyen Co-authored-by: Logan Nguyen Signed-off-by: ebadiere --- charts/hedera-json-rpc-relay/postman.json | 2120 ++++++++--------- docs/openrpc.json | 7 +- packages/relay/src/lib/net.ts | 9 +- packages/relay/src/lib/relay.ts | 2 +- packages/relay/tests/lib/net.spec.ts | 17 +- .../tests/acceptance/rpc_batch2.spec.ts | 6 +- packages/server/tests/postman.json | 2 +- 7 files changed, 1065 insertions(+), 1098 deletions(-) diff --git a/charts/hedera-json-rpc-relay/postman.json b/charts/hedera-json-rpc-relay/postman.json index 826083f68a..37f51adf6b 100644 --- a/charts/hedera-json-rpc-relay/postman.json +++ b/charts/hedera-json-rpc-relay/postman.json @@ -1,1089 +1,1035 @@ { - "info": { - "_postman_id": "351c728f-14b0-4b18-a499-4b100b68a822", - "name": "Relay", - "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "_exporter_id": "21244258" - }, - "item": [ - { - "name": "eth_accounts", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.be.an(\"array\");", - " pm.expect(response.result).length(0);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_accounts\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_blockNumber", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_blockNumber\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_chainId", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_chainId\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_estimateGas", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_estimateGas\",\n \"params\": [{\"to\":\"0xd3CdA913deB6f67967B99D67aCDFa1712C293601\", \"value\":\"0x1\"}]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_feeHistory", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result.baseFeePerGas).to.be.an(\"array\");", - " pm.expect(response.result.baseFeePerGas).length(4);", - " pm.expect(response.result.gasUsedRatio).to.be.an(\"array\");", - " pm.expect(response.result.gasUsedRatio).length(3);", - " pm.expect(response.result.oldestBlock).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.reward).to.be.an(\"array\");", - " pm.expect(response.result.reward).length(3);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_feeHistory\",\n \"params\": [\"0x3\", \"latest\", [25, 75]]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_gasPrice", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_gasPrice\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_getBalance", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getBalance\",\n \"params\": [\"0x0000000000000000000000000000000000000062\", \"latest\"]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_getBlockByNumber", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result.timestamp).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.difficulty).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.extraData).to.match(/^0x$/);", - " pm.expect(response.result.gasLimit).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.baseFeePerGas).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.gasUsed).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.logsBloom).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.miner).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.mixHash).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.nonce).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.receiptsRoot).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.sha3Uncles).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.size).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.stateRoot).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.totalDifficulty).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.transactions).to.be.an(\"array\");", - " pm.expect(response.result.transactionsRoot).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.uncles).to.be.an(\"array\");", - " pm.expect(response.result.number).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.hash).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.result.parentHash).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\"id\": \"test_id\",\"jsonrpc\": \"2.0\",\"method\": \"eth_getBlockByNumber\",\"params\": [\"latest\", true]}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_getBlockTransactionCountByNumber", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getBlockTransactionCountByNumber\",\n \"params\": [\n \"latest\"\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_getTransactionReceipt", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.be.null;", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getTransactionReceipt\",\n \"params\": [\"0x0000000000000000000000000000000000000000000000000000000000000001\"]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_getUncleByBlockHashAndIndex", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.be.null;", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUncleByBlockHashAndIndex\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_getUncleByBlockNumberAndIndex", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.be.null;", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUncleByBlockNumberAndIndex\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_getUncleCountByBlockHash", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.equal(\"0x0\");", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUncleCountByBlockHash\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_getUncleCountByBlockNumber", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.equal(\"0x0\");", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUncleCountByBlockNumber\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_getWork", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(response.error.code).to.equal(-32601);", - " pm.expect(response.error.message.endsWith(\"Unsupported JSON-RPC method\")).to.be.true;", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getWork\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "unsupported_function", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(response.error.code).to.equal(-32601);", - " pm.expect(response.error.message).to.equal(\"Method unsupported_function not found\");", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"unsupported_function\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "invalid_request", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(response.error.code).to.equal(-32600);", - " pm.expect(response.error.message).to.equal(\"Invalid Request\");", - " pm.expect(response.id).is.null;", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_hashrate", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.equal(\"0x0\");", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_hashrate\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_mining", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.equal(false);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_mining\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_submitWork", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.equal(false);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_submitWork\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_syncing", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.equal(false);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_syncing\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "net_listening", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.equal(\"false\");", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"net_listening\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "net_version", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"net_version\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "web3_clientVersion", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.match(/^relay[/]/);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"web3_clientVersion\",\n \"params\": []\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - }, - { - "name": "eth_getTransactionCount", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Success\", () => {", - " var response = pm.response.json();", - " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", - " pm.expect(response.id).to.equal(\"test_id\");", - " pm.expect(response.jsonrpc).to.equal(\"2.0\");", - "});", - "" - ], - "type": "text/javascript" - } - } - ], - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getTransactionCount\",\n \"params\": [\n \"0x0000000000000000000000000000000000000062\", \"latest\"\n ]\n}", - "options": { - "raw": { - "language": "json" - } - } - }, - "url": { - "raw": "{{baseUrl}}", - "host": [ - "{{baseUrl}}" - ] - } - }, - "response": [] - } - ], - "event": [ - { - "listen": "prerequest", - "script": { - "type": "text/javascript", - "exec": [ - "" - ] - } - }, - { - "listen": "test", - "script": { - "type": "text/javascript", - "exec": [ - "" - ] - } - } - ], - "variable": [ - { - "key": "baseUrl", - "value": "localhost:7546", - "type": "string" - } - ] + "info": { + "_postman_id": "351c728f-14b0-4b18-a499-4b100b68a822", + "name": "Relay", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "21244258" + }, + "item": [ + { + "name": "eth_accounts", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.be.an(\"array\");", + " pm.expect(response.result).length(0);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_accounts\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_blockNumber", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_blockNumber\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_chainId", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_chainId\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_estimateGas", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_estimateGas\",\n \"params\": [{\"to\":\"0xd3CdA913deB6f67967B99D67aCDFa1712C293601\", \"value\":\"0x1\"}]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_feeHistory", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result.baseFeePerGas).to.be.an(\"array\");", + " pm.expect(response.result.baseFeePerGas).length(4);", + " pm.expect(response.result.gasUsedRatio).to.be.an(\"array\");", + " pm.expect(response.result.gasUsedRatio).length(3);", + " pm.expect(response.result.oldestBlock).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.reward).to.be.an(\"array\");", + " pm.expect(response.result.reward).length(3);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_feeHistory\",\n \"params\": [\"0x3\", \"latest\", [25, 75]]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_gasPrice", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_gasPrice\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_getBalance", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getBalance\",\n \"params\": [\"0x0000000000000000000000000000000000000062\", \"latest\"]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_getBlockByNumber", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result.timestamp).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.difficulty).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.extraData).to.match(/^0x$/);", + " pm.expect(response.result.gasLimit).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.baseFeePerGas).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.gasUsed).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.logsBloom).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.miner).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.mixHash).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.nonce).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.receiptsRoot).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.sha3Uncles).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.size).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.stateRoot).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.totalDifficulty).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.transactions).to.be.an(\"array\");", + " pm.expect(response.result.transactionsRoot).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.uncles).to.be.an(\"array\");", + " pm.expect(response.result.number).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.hash).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result.parentHash).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\"id\": \"test_id\",\"jsonrpc\": \"2.0\",\"method\": \"eth_getBlockByNumber\",\"params\": [\"latest\", true]}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_getBlockTransactionCountByNumber", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getBlockTransactionCountByNumber\",\n \"params\": [\n \"latest\"\n ]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_getTransactionReceipt", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.be.null;", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getTransactionReceipt\",\n \"params\": [\"0x0000000000000000000000000000000000000000000000000000000000000001\"]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_getUncleByBlockHashAndIndex", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.be.null;", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUncleByBlockHashAndIndex\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_getUncleByBlockNumberAndIndex", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.be.null;", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUncleByBlockNumberAndIndex\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_getUncleCountByBlockHash", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.equal(\"0x0\");", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUncleCountByBlockHash\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_getUncleCountByBlockNumber", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.equal(\"0x0\");", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getUncleCountByBlockNumber\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_getWork", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(response.error.code).to.equal(-32601);", + " pm.expect(response.error.message.endsWith(\"Unsupported JSON-RPC method\")).to.be.true;", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getWork\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "unsupported_function", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(response.error.code).to.equal(-32601);", + " pm.expect(response.error.message).to.equal(\"Method unsupported_function not found\");", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"unsupported_function\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "invalid_request", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(response.error.code).to.equal(-32600);", + " pm.expect(response.error.message).to.equal(\"Invalid Request\");", + " pm.expect(response.id).is.null;", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_hashrate", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.equal(\"0x0\");", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_hashrate\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_mining", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.equal(false);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_mining\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_submitWork", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.equal(false);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_submitWork\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_syncing", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.equal(false);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_syncing\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "net_listening", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.equal(\"false\");", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"net_listening\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "net_version", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.match(/^\\d+$/);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"net_version\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "web3_clientVersion", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.match(/^relay[/]/);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"web3_clientVersion\",\n \"params\": []\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + }, + { + "name": "eth_getTransactionCount", + "event": [ + { + "listen": "test", + "script": { + "exec": [ + "pm.test(\"Success\", () => {", + " var response = pm.response.json();", + " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", + " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.id).to.equal(\"test_id\");", + " pm.expect(response.jsonrpc).to.equal(\"2.0\");", + "});", + "" + ], + "type": "text/javascript" + } + } + ], + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": \"test_id\",\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getTransactionCount\",\n \"params\": [\n \"0x0000000000000000000000000000000000000062\", \"latest\"\n ]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{baseUrl}}", + "host": ["{{baseUrl}}"] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [""] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [""] + } + } + ], + "variable": [ + { + "key": "baseUrl", + "value": "localhost:7546", + "type": "string" + } + ] } diff --git a/docs/openrpc.json b/docs/openrpc.json index 322dc0bc85..fcb8bb4b8a 100644 --- a/docs/openrpc.json +++ b/docs/openrpc.json @@ -924,7 +924,7 @@ "result": { "name": "The current chain id.", "schema": { - "$ref": "#/components/schemas/uint" + "$ref": "#/components/schemas/int" } } }, @@ -1237,6 +1237,11 @@ "type": "string", "pattern": "^0x[0-9a-f]{512}$" }, + "int": { + "title": "decimal value integer", + "type": "string", + "pattern": "^\\d+$" + }, "uint": { "title": "hex encoded unsigned integer", "type": "string", diff --git a/packages/relay/src/lib/net.ts b/packages/relay/src/lib/net.ts index a714565e7c..ce683e43b2 100644 --- a/packages/relay/src/lib/net.ts +++ b/packages/relay/src/lib/net.ts @@ -19,15 +19,19 @@ */ import { Net } from '../index'; +import constants from './constants'; import { Client } from '@hashgraph/sdk'; export class NetImpl implements Net { private client: Client; private readonly chainId: string; - constructor(client: Client, chainId: string) { + constructor(client: Client) { this.client = client; - this.chainId = chainId; + + const hederaNetwork: string = (process.env.HEDERA_NETWORK || '{}').toLowerCase(); + this.chainId = process.env.CHAIN_ID || constants.CHAIN_IDS[hederaNetwork] || '298'; + if (this.chainId.startsWith('0x')) this.chainId = parseInt(this.chainId, 16).toString(); } /** @@ -39,7 +43,6 @@ export class NetImpl implements Net { /** * This is the chain id we registered. - * TODO Support some config when launching the server for this. dotenv support? */ version(): string { return this.chainId; diff --git a/packages/relay/src/lib/relay.ts b/packages/relay/src/lib/relay.ts index 3c5339b966..d37cf7db82 100644 --- a/packages/relay/src/lib/relay.ts +++ b/packages/relay/src/lib/relay.ts @@ -63,7 +63,7 @@ export class RelayImpl implements Relay { this.clientMain = hapiService.getMainClientInstance(); this.web3Impl = new Web3Impl(this.clientMain); - this.netImpl = new NetImpl(this.clientMain, chainId); + this.netImpl = new NetImpl(this.clientMain); this.mirrorNodeClient = new MirrorNodeClient( process.env.MIRROR_NODE_URL || '', diff --git a/packages/relay/tests/lib/net.spec.ts b/packages/relay/tests/lib/net.spec.ts index 956b76f272..b4f3d44448 100644 --- a/packages/relay/tests/lib/net.spec.ts +++ b/packages/relay/tests/lib/net.spec.ts @@ -18,18 +18,27 @@ * */ +import pino from 'pino'; import { expect } from 'chai'; import { Registry } from 'prom-client'; import { RelayImpl } from '../../src/lib/relay'; +import constants from '../../src/lib/constants'; -import pino from 'pino'; const logger = pino(); - const Relay = new RelayImpl(logger, new Registry()); describe('Net', async function () { - it('should execute "net_listening"', async function () { - const result = await Relay.net().listening(); + it('should execute "net_listening"', function () { + const result = Relay.net().listening(); expect(result).to.eq(false); }); + + it('should execute "net_version"', function () { + const hederaNetwork: string = (process.env.HEDERA_NETWORK || '{}').toLowerCase(); + let expectedNetVersion = process.env.CHAIN_ID || constants.CHAIN_IDS[hederaNetwork] || '298'; + if (expectedNetVersion.startsWith('0x')) expectedNetVersion = parseInt(expectedNetVersion, 16).toString(); + + const actualNetVersion = Relay.net().version(); + expect(actualNetVersion).to.eq(expectedNetVersion); + }); }); diff --git a/packages/server/tests/acceptance/rpc_batch2.spec.ts b/packages/server/tests/acceptance/rpc_batch2.spec.ts index ebc185fd78..137efe5fb4 100644 --- a/packages/server/tests/acceptance/rpc_batch2.spec.ts +++ b/packages/server/tests/acceptance/rpc_batch2.spec.ts @@ -600,7 +600,11 @@ describe('@api-batch-2 RPC Server Acceptance Tests', function () { it('should execute "net_version"', async function () { const res = await relay.call(RelayCalls.ETH_ENDPOINTS.NET_VERSION, [], requestId); - expect(res).to.be.equal(CHAIN_ID); + + let expectedVersion = CHAIN_ID as string; + if (expectedVersion.startsWith('0x')) expectedVersion = parseInt(expectedVersion, 16).toString(); + + expect(res).to.be.equal(expectedVersion); }); it('should execute "eth_getUncleByBlockHashAndIndex"', async function () { diff --git a/packages/server/tests/postman.json b/packages/server/tests/postman.json index e345ad0c5b..37f51adf6b 100644 --- a/packages/server/tests/postman.json +++ b/packages/server/tests/postman.json @@ -901,7 +901,7 @@ "pm.test(\"Success\", () => {", " var response = pm.response.json();", " pm.expect(JSON.stringify(response.error)).to.equal(undefined);", - " pm.expect(response.result).to.match(/^0x[a-f0-9]+$/);", + " pm.expect(response.result).to.match(/^\\d+$/);", " pm.expect(response.id).to.equal(\"test_id\");", " pm.expect(response.jsonrpc).to.equal(\"2.0\");", "});", From 3f634bc42d69b35775c1c483e1e80828c60d3bcc Mon Sep 17 00:00:00 2001 From: Georgi Lazarov Date: Wed, 3 Jul 2024 16:33:13 +0300 Subject: [PATCH 2/2] fix: issue when trying to perform transaction (#2663) Signed-off-by: georgi-l95 Signed-off-by: ebadiere --- package-lock.json | 1399 +++++-------------------------- package.json | 2 +- packages/relay/package.json | 2 +- packages/server/package.json | 4 +- packages/ws-server/package.json | 4 +- 5 files changed, 201 insertions(+), 1210 deletions(-) diff --git a/package-lock.json b/package-lock.json index ffc8e9cac6..02b94792a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "": { "name": "root", "dependencies": { - "@hashgraph/hedera-local": "^2.26.2", + "@hashgraph/hedera-local": "^2.27.0", "@open-rpc/schema-utils-js": "^1.16.1", "@types/find-config": "^1.0.4", "@types/sinon": "^10.0.20", @@ -2107,23 +2107,23 @@ } }, "node_modules/@hashgraph/hedera-local": { - "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==", + "version": "2.27.0", + "resolved": "https://registry.npmjs.org/@hashgraph/hedera-local/-/hedera-local-2.27.0.tgz", + "integrity": "sha512-K9TOLJ33GE90TRUK7matQkCsQ+HrkhhpUjGQw1L2gguTKwpaJDCiiu2M3R64MQyhjINc7e5eQYZvvKJtvFlHIw==", "dependencies": { - "@hashgraph/sdk": "2.43.0", + "@hashgraph/sdk": "^2.47.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.13.0", + "ethers": "^6.13.1", "js-yaml": "^4.1.0", "rimraf": "^5.0.5", - "semver": "^7.6.0", + "semver": "^7.6.2", "shelljs": "^0.8.5", - "ts-mocha": "^9.0.0", + "ts-mocha": "^10.0.0", "yargs": "^17.7.2" }, "bin": { @@ -2159,6 +2159,14 @@ "balanced-match": "^1.0.0" } }, + "node_modules/@hashgraph/hedera-local/node_modules/diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "engines": { + "node": ">=0.3.1" + } + }, "node_modules/@hashgraph/hedera-local/node_modules/ethers": { "version": "6.13.1", "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.1.tgz", @@ -2264,6 +2272,47 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/@hashgraph/hedera-local/node_modules/ts-mocha": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/ts-mocha/-/ts-mocha-10.0.0.tgz", + "integrity": "sha512-VRfgDO+iiuJFlNB18tzOfypJ21xn2xbuZyDvJvqpTbWgkAgD17ONGr8t+Tl8rcBtOBdjXp5e/Rk+d39f7XBHRw==", + "dependencies": { + "ts-node": "7.0.1" + }, + "bin": { + "ts-mocha": "bin/ts-mocha" + }, + "engines": { + "node": ">= 6.X.X" + }, + "optionalDependencies": { + "tsconfig-paths": "^3.5.0" + }, + "peerDependencies": { + "mocha": "^3.X.X || ^4.X.X || ^5.X.X || ^6.X.X || ^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X" + } + }, + "node_modules/@hashgraph/hedera-local/node_modules/ts-node": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz", + "integrity": "sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==", + "dependencies": { + "arrify": "^1.0.0", + "buffer-from": "^1.1.0", + "diff": "^3.1.0", + "make-error": "^1.1.1", + "minimist": "^1.2.0", + "mkdirp": "^0.5.1", + "source-map-support": "^0.5.6", + "yn": "^2.0.0" + }, + "bin": { + "ts-node": "dist/bin.js" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/@hashgraph/hedera-local/node_modules/tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", @@ -2289,6 +2338,14 @@ } } }, + "node_modules/@hashgraph/hedera-local/node_modules/yn": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", + "integrity": "sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==", + "engines": { + "node": ">=4" + } + }, "node_modules/@hashgraph/json-rpc-relay": { "resolved": "packages/relay", "link": true @@ -2302,9 +2359,9 @@ "link": true }, "node_modules/@hashgraph/proto": { - "version": "2.14.0-beta.5", - "resolved": "https://registry.npmjs.org/@hashgraph/proto/-/proto-2.14.0-beta.5.tgz", - "integrity": "sha512-UrIbLdctpD//Ua99Z4PnknbR8220nc1Pzv0nkDJ1emZE9EAi7YOOry2Dw660azQHWfVw/HhqECPdiKrTIZ2b+Q==", + "version": "2.15.0-beta.2", + "resolved": "https://registry.npmjs.org/@hashgraph/proto/-/proto-2.15.0-beta.2.tgz", + "integrity": "sha512-vtkW8rZccnch3FKmNj1bLRZsS0YO3w7PuCj8LNq9HgMP6KzzA7scRk8yLm/XyiD7UHJS/l1cFg0Cj/DDRSwGxQ==", "dependencies": { "long": "^4.0.0", "protobufjs": "^7.2.5" @@ -2314,9 +2371,9 @@ } }, "node_modules/@hashgraph/sdk": { - "version": "2.43.0", - "resolved": "https://registry.npmjs.org/@hashgraph/sdk/-/sdk-2.43.0.tgz", - "integrity": "sha512-3MOZDL8Tm+Ciu+e402R9mSPfAUaiv8GCY+G6prUDOJzkNubRGm7gNxpeMlmHDZepc+EOkuq+kOq3QvB+2IvgWQ==", + "version": "2.48.1", + "resolved": "https://registry.npmjs.org/@hashgraph/sdk/-/sdk-2.48.1.tgz", + "integrity": "sha512-ZizLBcgu7bBIx+EuwRWFkBQugAQAkH5ZvKe+dTf53TCVoUw3LPIta+u/hpVIhB9Xm9PJmA9F23DSo+Bmken46Q==", "dependencies": { "@ethersproject/abi": "^5.7.0", "@ethersproject/bignumber": "^5.7.0", @@ -2324,7 +2381,7 @@ "@ethersproject/rlp": "^5.7.0", "@grpc/grpc-js": "1.8.2", "@hashgraph/cryptography": "1.4.8-beta.5", - "@hashgraph/proto": "2.14.0-beta.5", + "@hashgraph/proto": "2.15.0-beta.2", "axios": "^1.6.4", "bignumber.js": "^9.1.1", "bn.js": "^5.1.1", @@ -2366,30 +2423,30 @@ } }, "node_modules/@hashgraph/sdk/node_modules/pino": { - "version": "8.19.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.19.0.tgz", - "integrity": "sha512-oswmokxkav9bADfJ2ifrvfHUwad6MLp73Uat0IkQWY3iAw5xTRoznXbXksZs8oaOUMpmhVWD+PZogNzllWpJaA==", + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/pino/-/pino-8.21.0.tgz", + "integrity": "sha512-ip4qdzjkAyDDZklUaZkcRFb2iA118H9SgRh8yzTkSQK8HilsOJF7rSY8HoW5+I0M46AZgX/pxbprf2vvzQCE0Q==", "dependencies": { "atomic-sleep": "^1.0.0", "fast-redact": "^3.1.1", "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.1.0", + "pino-abstract-transport": "^1.2.0", "pino-std-serializers": "^6.0.0", "process-warning": "^3.0.0", "quick-format-unescaped": "^4.0.3", "real-require": "^0.2.0", "safe-stable-stringify": "^2.3.1", "sonic-boom": "^3.7.0", - "thread-stream": "^2.0.0" + "thread-stream": "^2.6.0" }, "bin": { "pino": "bin.js" } }, "node_modules/@hashgraph/sdk/node_modules/pino-abstract-transport": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.1.0.tgz", - "integrity": "sha512-lsleG3/2a/JIWUtf9Q5gUNErBqwIu1tUKTT3dUzaf5DySw9ra1wcqKjJjLX1VTY64Wk1eEOYsVGSaGfCK85ekA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", + "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", "dependencies": { "readable-stream": "^4.0.0", "split2": "^4.0.0" @@ -2469,9 +2526,9 @@ } }, "node_modules/@hashgraph/sdk/node_modules/thread-stream": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.4.1.tgz", - "integrity": "sha512-d/Ex2iWd1whipbT681JmTINKw0ZwOUBZm7+Gjs64DHuX34mmw8vJL2bFAaNacaW72zYiTJxSHi5abUuOi5nsfg==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.7.0.tgz", + "integrity": "sha512-qQiRWsU/wvNolI6tbbCKd9iKaTnCXsTwVxhhKM6nctPdujTyztjlbUkUTUymidWcMnZ5pWR0ej4a0tjsW021vw==", "dependencies": { "real-require": "^0.2.0" } @@ -19429,6 +19486,7 @@ "version": "9.0.2", "resolved": "https://registry.npmjs.org/ts-mocha/-/ts-mocha-9.0.2.tgz", "integrity": "sha512-WyQjvnzwrrubl0JT7EC1yWmNpcsU3fOuBFfdps30zbmFBgKniSaSOyZMZx+Wq7kytUs5CY+pEbSYEbGfIKnXTw==", + "dev": true, "dependencies": { "ts-node": "7.0.1" }, @@ -19449,6 +19507,7 @@ "version": "3.5.0", "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true, "engines": { "node": ">=0.3.1" } @@ -19457,6 +19516,7 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz", "integrity": "sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==", + "dev": true, "dependencies": { "arrify": "^1.0.0", "buffer-from": "^1.1.0", @@ -19478,6 +19538,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", "integrity": "sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==", + "dev": true, "engines": { "node": ">=4" } @@ -20702,7 +20763,7 @@ "version": "0.51.0-rc1", "dependencies": { "@ethersproject/asm": "^5.7.0", - "@hashgraph/sdk": "2.44.0", + "@hashgraph/sdk": "^2.48.1", "@keyvhq/core": "^1.6.9", "axios": "^1.4.0", "axios-retry": "^3.5.1", @@ -20732,63 +20793,6 @@ "typescript": "^4.6.4" } }, - "packages/relay/node_modules/@hashgraph/sdk": { - "version": "2.44.0", - "resolved": "https://registry.npmjs.org/@hashgraph/sdk/-/sdk-2.44.0.tgz", - "integrity": "sha512-F+fASqp/8Wp27HFXi2E60qY0Zp60UJWtTonqbIT+TCFbslItbLDJR+p+2FEz3wVCWRq2gJw+1ZMi/CMWtOHYpA==", - "dependencies": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@grpc/grpc-js": "1.8.2", - "@hashgraph/cryptography": "1.4.8-beta.5", - "@hashgraph/proto": "2.14.0-beta.5", - "axios": "^1.6.4", - "bignumber.js": "^9.1.1", - "bn.js": "^5.1.1", - "crypto-js": "^4.2.0", - "js-base64": "^3.7.4", - "long": "^4.0.0", - "pino": "^8.14.1", - "pino-pretty": "^10.0.0", - "protobufjs": "^7.2.5", - "rfc4648": "^1.5.3", - "utf8": "^3.0.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "expo": "^49.0.16" - }, - "peerDependenciesMeta": { - "expo": { - "optional": true - } - } - }, - "packages/relay/node_modules/@hashgraph/sdk/node_modules/pino": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.21.0.tgz", - "integrity": "sha512-ip4qdzjkAyDDZklUaZkcRFb2iA118H9SgRh8yzTkSQK8HilsOJF7rSY8HoW5+I0M46AZgX/pxbprf2vvzQCE0Q==", - "dependencies": { - "atomic-sleep": "^1.0.0", - "fast-redact": "^3.1.1", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.2.0", - "pino-std-serializers": "^6.0.0", - "process-warning": "^3.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^3.7.0", - "thread-stream": "^2.6.0" - }, - "bin": { - "pino": "bin.js" - } - }, "packages/relay/node_modules/@noble/curves": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", @@ -20803,21 +20807,14 @@ "packages/relay/node_modules/@types/node": { "version": "17.0.45", "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", - "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==" + "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==", + "dev": true }, "packages/relay/node_modules/aes-js": { "version": "4.0.0-beta.5", "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-4.0.0-beta.5.tgz", "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==" }, - "packages/relay/node_modules/dateformat": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", - "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", - "engines": { - "node": "*" - } - }, "packages/relay/node_modules/ethers": { "version": "6.13.0", "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", @@ -20850,132 +20847,6 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.13.tgz", "integrity": "sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q==" }, - "packages/relay/node_modules/on-exit-leak-free": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", - "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", - "engines": { - "node": ">=14.0.0" - } - }, - "packages/relay/node_modules/pino-abstract-transport": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", - "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", - "dependencies": { - "readable-stream": "^4.0.0", - "split2": "^4.0.0" - } - }, - "packages/relay/node_modules/pino-pretty": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.3.1.tgz", - "integrity": "sha512-az8JbIYeN/1iLj2t0jR9DV48/LQ3RC6hZPpapKPkb84Q+yTidMCpgWxIT3N0flnBDilyBQ1luWNpOeJptjdp/g==", - "dependencies": { - "colorette": "^2.0.7", - "dateformat": "^4.6.3", - "fast-copy": "^3.0.0", - "fast-safe-stringify": "^2.1.1", - "help-me": "^5.0.0", - "joycon": "^3.1.1", - "minimist": "^1.2.6", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.0.0", - "pump": "^3.0.0", - "readable-stream": "^4.0.0", - "secure-json-parse": "^2.4.0", - "sonic-boom": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "bin": { - "pino-pretty": "bin.js" - } - }, - "packages/relay/node_modules/pino-std-serializers": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", - "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==" - }, - "packages/relay/node_modules/process-warning": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", - "integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==" - }, - "packages/relay/node_modules/protobufjs": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.3.0.tgz", - "integrity": "sha512-YWD03n3shzV9ImZRX3ccbjqLxj7NokGN0V/ESiBV5xWqrommYHYiihuIyavq03pWSGqlyvYUFmfoMKd+1rPA/g==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "packages/relay/node_modules/protobufjs/node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" - }, - "packages/relay/node_modules/readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "packages/relay/node_modules/real-require": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", - "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", - "engines": { - "node": ">= 12.13.0" - } - }, - "packages/relay/node_modules/sonic-boom": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.8.1.tgz", - "integrity": "sha512-y4Z8LCDBuum+PBP3lSV7RHrXscqksve/bi0as7mhwVnBW+/wUqKT/2Kb7um8yqcFy0duYbbPxzt89Zy2nOCaxg==", - "dependencies": { - "atomic-sleep": "^1.0.0" - } - }, - "packages/relay/node_modules/split2": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", - "engines": { - "node": ">= 10.x" - } - }, - "packages/relay/node_modules/thread-stream": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.7.0.tgz", - "integrity": "sha512-qQiRWsU/wvNolI6tbbCKd9iKaTnCXsTwVxhhKM6nctPdujTyztjlbUkUTUymidWcMnZ5pWR0ej4a0tjsW021vw==", - "dependencies": { - "real-require": "^0.2.0" - } - }, "packages/relay/node_modules/tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", @@ -21021,8 +20892,8 @@ "uuid": "^3.3.2" }, "devDependencies": { - "@hashgraph/hedera-local": "^2.22.0", - "@hashgraph/sdk": "2.44.0", + "@hashgraph/hedera-local": "^2.27.0", + "@hashgraph/sdk": "^2.48.1", "@koa/cors": "^5.0.0", "@types/chai": "^4.3.0", "@types/cors": "^2.8.12", @@ -21041,90 +20912,6 @@ "typescript": "^4.5.5" } }, - "packages/server/node_modules/@hashgraph/sdk": { - "version": "2.44.0", - "resolved": "https://registry.npmjs.org/@hashgraph/sdk/-/sdk-2.44.0.tgz", - "integrity": "sha512-F+fASqp/8Wp27HFXi2E60qY0Zp60UJWtTonqbIT+TCFbslItbLDJR+p+2FEz3wVCWRq2gJw+1ZMi/CMWtOHYpA==", - "dev": true, - "dependencies": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@grpc/grpc-js": "1.8.2", - "@hashgraph/cryptography": "1.4.8-beta.5", - "@hashgraph/proto": "2.14.0-beta.5", - "axios": "^1.6.4", - "bignumber.js": "^9.1.1", - "bn.js": "^5.1.1", - "crypto-js": "^4.2.0", - "js-base64": "^3.7.4", - "long": "^4.0.0", - "pino": "^8.14.1", - "pino-pretty": "^10.0.0", - "protobufjs": "^7.2.5", - "rfc4648": "^1.5.3", - "utf8": "^3.0.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "expo": "^49.0.16" - }, - "peerDependenciesMeta": { - "expo": { - "optional": true - } - } - }, - "packages/server/node_modules/@hashgraph/sdk/node_modules/pino": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.21.0.tgz", - "integrity": "sha512-ip4qdzjkAyDDZklUaZkcRFb2iA118H9SgRh8yzTkSQK8HilsOJF7rSY8HoW5+I0M46AZgX/pxbprf2vvzQCE0Q==", - "dev": true, - "dependencies": { - "atomic-sleep": "^1.0.0", - "fast-redact": "^3.1.1", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.2.0", - "pino-std-serializers": "^6.0.0", - "process-warning": "^3.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^3.7.0", - "thread-stream": "^2.6.0" - }, - "bin": { - "pino": "bin.js" - } - }, - "packages/server/node_modules/@hashgraph/sdk/node_modules/pino-pretty": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.3.1.tgz", - "integrity": "sha512-az8JbIYeN/1iLj2t0jR9DV48/LQ3RC6hZPpapKPkb84Q+yTidMCpgWxIT3N0flnBDilyBQ1luWNpOeJptjdp/g==", - "dev": true, - "dependencies": { - "colorette": "^2.0.7", - "dateformat": "^4.6.3", - "fast-copy": "^3.0.0", - "fast-safe-stringify": "^2.1.1", - "help-me": "^5.0.0", - "joycon": "^3.1.1", - "minimist": "^1.2.6", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.0.0", - "pump": "^3.0.0", - "readable-stream": "^4.0.0", - "secure-json-parse": "^2.4.0", - "sonic-boom": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "bin": { - "pino-pretty": "bin.js" - } - }, "packages/server/node_modules/@noble/curves": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", @@ -21149,19 +20936,10 @@ "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==", "dev": true }, - "packages/server/node_modules/dateformat": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", - "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", - "dev": true, - "engines": { - "node": "*" - } - }, "packages/server/node_modules/ethers": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", - "integrity": "sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==", + "version": "6.13.1", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.1.tgz", + "integrity": "sha512-hdJ2HOxg/xx97Lm9HdCWk949BfYqYWpyw4//78SiwOLgASyfrNszfMUNB2joKjvGUdwhHfaiMMFFwacVVoLR9A==", "dev": true, "funding": [ { @@ -21180,7 +20958,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" @@ -21192,119 +20970,6 @@ "integrity": "sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q==", "dev": true }, - "packages/server/node_modules/on-exit-leak-free": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", - "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", - "dev": true, - "engines": { - "node": ">=14.0.0" - } - }, - "packages/server/node_modules/pino-abstract-transport": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", - "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", - "dev": true, - "dependencies": { - "readable-stream": "^4.0.0", - "split2": "^4.0.0" - } - }, - "packages/server/node_modules/pino-std-serializers": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", - "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==", - "dev": true - }, - "packages/server/node_modules/process-warning": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", - "integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==", - "dev": true - }, - "packages/server/node_modules/protobufjs": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.3.0.tgz", - "integrity": "sha512-YWD03n3shzV9ImZRX3ccbjqLxj7NokGN0V/ESiBV5xWqrommYHYiihuIyavq03pWSGqlyvYUFmfoMKd+1rPA/g==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "packages/server/node_modules/protobufjs/node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", - "dev": true - }, - "packages/server/node_modules/readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "dev": true, - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "packages/server/node_modules/real-require": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", - "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", - "dev": true, - "engines": { - "node": ">= 12.13.0" - } - }, - "packages/server/node_modules/sonic-boom": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.8.1.tgz", - "integrity": "sha512-y4Z8LCDBuum+PBP3lSV7RHrXscqksve/bi0as7mhwVnBW+/wUqKT/2Kb7um8yqcFy0duYbbPxzt89Zy2nOCaxg==", - "dev": true, - "dependencies": { - "atomic-sleep": "^1.0.0" - } - }, - "packages/server/node_modules/split2": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", - "dev": true, - "engines": { - "node": ">= 10.x" - } - }, - "packages/server/node_modules/thread-stream": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.7.0.tgz", - "integrity": "sha512-qQiRWsU/wvNolI6tbbCKd9iKaTnCXsTwVxhhKM6nctPdujTyztjlbUkUTUymidWcMnZ5pWR0ej4a0tjsW021vw==", - "dev": true, - "dependencies": { - "real-require": "^0.2.0" - } - }, "packages/server/node_modules/tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", @@ -21312,16 +20977,16 @@ "dev": true }, "packages/server/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==", "dev": true, "engines": { "node": ">=10.0.0" }, "peerDependencies": { "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "utf-8-validate": ">=5.0.2" }, "peerDependenciesMeta": { "bufferutil": { @@ -21353,8 +21018,8 @@ "pnpm": "8.15.8" }, "devDependencies": { - "@hashgraph/hedera-local": "^2.22.0", - "@hashgraph/sdk": "2.44.0", + "@hashgraph/hedera-local": "^2.27.0", + "@hashgraph/sdk": "^2.48.1", "@koa/cors": "^5.0.0", "@types/chai": "^4.3.0", "@types/cors": "^2.8.12", @@ -21372,90 +21037,6 @@ "typescript": "^4.5.5" } }, - "packages/ws-server/node_modules/@hashgraph/sdk": { - "version": "2.44.0", - "resolved": "https://registry.npmjs.org/@hashgraph/sdk/-/sdk-2.44.0.tgz", - "integrity": "sha512-F+fASqp/8Wp27HFXi2E60qY0Zp60UJWtTonqbIT+TCFbslItbLDJR+p+2FEz3wVCWRq2gJw+1ZMi/CMWtOHYpA==", - "dev": true, - "dependencies": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@grpc/grpc-js": "1.8.2", - "@hashgraph/cryptography": "1.4.8-beta.5", - "@hashgraph/proto": "2.14.0-beta.5", - "axios": "^1.6.4", - "bignumber.js": "^9.1.1", - "bn.js": "^5.1.1", - "crypto-js": "^4.2.0", - "js-base64": "^3.7.4", - "long": "^4.0.0", - "pino": "^8.14.1", - "pino-pretty": "^10.0.0", - "protobufjs": "^7.2.5", - "rfc4648": "^1.5.3", - "utf8": "^3.0.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "expo": "^49.0.16" - }, - "peerDependenciesMeta": { - "expo": { - "optional": true - } - } - }, - "packages/ws-server/node_modules/@hashgraph/sdk/node_modules/pino": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.21.0.tgz", - "integrity": "sha512-ip4qdzjkAyDDZklUaZkcRFb2iA118H9SgRh8yzTkSQK8HilsOJF7rSY8HoW5+I0M46AZgX/pxbprf2vvzQCE0Q==", - "dev": true, - "dependencies": { - "atomic-sleep": "^1.0.0", - "fast-redact": "^3.1.1", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.2.0", - "pino-std-serializers": "^6.0.0", - "process-warning": "^3.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^3.7.0", - "thread-stream": "^2.6.0" - }, - "bin": { - "pino": "bin.js" - } - }, - "packages/ws-server/node_modules/@hashgraph/sdk/node_modules/pino-pretty": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.3.1.tgz", - "integrity": "sha512-az8JbIYeN/1iLj2t0jR9DV48/LQ3RC6hZPpapKPkb84Q+yTidMCpgWxIT3N0flnBDilyBQ1luWNpOeJptjdp/g==", - "dev": true, - "dependencies": { - "colorette": "^2.0.7", - "dateformat": "^4.6.3", - "fast-copy": "^3.0.0", - "fast-safe-stringify": "^2.1.1", - "help-me": "^5.0.0", - "joycon": "^3.1.1", - "minimist": "^1.2.6", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.0.0", - "pump": "^3.0.0", - "readable-stream": "^4.0.0", - "secure-json-parse": "^2.4.0", - "sonic-boom": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "bin": { - "pino-pretty": "bin.js" - } - }, "packages/ws-server/node_modules/@noble/curves": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", @@ -21496,15 +21077,6 @@ "balanced-match": "^1.0.0" } }, - "packages/ws-server/node_modules/dateformat": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", - "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", - "dev": true, - "engines": { - "node": "*" - } - }, "packages/ws-server/node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -21517,9 +21089,9 @@ } }, "packages/ws-server/node_modules/ethers": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", - "integrity": "sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==", + "version": "6.13.1", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.1.tgz", + "integrity": "sha512-hdJ2HOxg/xx97Lm9HdCWk949BfYqYWpyw4//78SiwOLgASyfrNszfMUNB2joKjvGUdwhHfaiMMFFwacVVoLR9A==", "dev": true, "funding": [ { @@ -21538,7 +21110,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" @@ -21627,31 +21199,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, - "packages/ws-server/node_modules/on-exit-leak-free": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", - "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", - "dev": true, - "engines": { - "node": ">=14.0.0" - } - }, - "packages/ws-server/node_modules/pino-abstract-transport": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", - "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", - "dev": true, - "dependencies": { - "readable-stream": "^4.0.0", - "split2": "^4.0.0" - } - }, - "packages/ws-server/node_modules/pino-std-serializers": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", - "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==", - "dev": true - }, "packages/ws-server/node_modules/pnpm": { "version": "8.15.7", "resolved": "https://registry.npmjs.org/pnpm/-/pnpm-8.15.7.tgz", @@ -21667,85 +21214,6 @@ "url": "https://opencollective.com/pnpm" } }, - "packages/ws-server/node_modules/process-warning": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", - "integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==", - "dev": true - }, - "packages/ws-server/node_modules/protobufjs": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.3.0.tgz", - "integrity": "sha512-YWD03n3shzV9ImZRX3ccbjqLxj7NokGN0V/ESiBV5xWqrommYHYiihuIyavq03pWSGqlyvYUFmfoMKd+1rPA/g==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "packages/ws-server/node_modules/protobufjs/node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", - "dev": true - }, - "packages/ws-server/node_modules/readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "dev": true, - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "packages/ws-server/node_modules/real-require": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", - "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", - "dev": true, - "engines": { - "node": ">= 12.13.0" - } - }, - "packages/ws-server/node_modules/sonic-boom": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.8.1.tgz", - "integrity": "sha512-y4Z8LCDBuum+PBP3lSV7RHrXscqksve/bi0as7mhwVnBW+/wUqKT/2Kb7um8yqcFy0duYbbPxzt89Zy2nOCaxg==", - "dev": true, - "dependencies": { - "atomic-sleep": "^1.0.0" - } - }, - "packages/ws-server/node_modules/split2": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", - "dev": true, - "engines": { - "node": ">= 10.x" - } - }, "packages/ws-server/node_modules/supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", @@ -21760,15 +21228,6 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "packages/ws-server/node_modules/thread-stream": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.7.0.tgz", - "integrity": "sha512-qQiRWsU/wvNolI6tbbCKd9iKaTnCXsTwVxhhKM6nctPdujTyztjlbUkUTUymidWcMnZ5pWR0ej4a0tjsW021vw==", - "dev": true, - "dependencies": { - "real-require": "^0.2.0" - } - }, "packages/ws-server/node_modules/tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", @@ -21781,16 +21240,16 @@ "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==" }, "packages/ws-server/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==", "dev": true, "engines": { "node": ">=10.0.0" }, "peerDependencies": { "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "utf-8-validate": ">=5.0.2" }, "peerDependenciesMeta": { "bufferutil": { @@ -23295,23 +22754,23 @@ } }, "@hashgraph/hedera-local": { - "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==", + "version": "2.27.0", + "resolved": "https://registry.npmjs.org/@hashgraph/hedera-local/-/hedera-local-2.27.0.tgz", + "integrity": "sha512-K9TOLJ33GE90TRUK7matQkCsQ+HrkhhpUjGQw1L2gguTKwpaJDCiiu2M3R64MQyhjINc7e5eQYZvvKJtvFlHIw==", "requires": { - "@hashgraph/sdk": "2.43.0", + "@hashgraph/sdk": "^2.47.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.13.0", + "ethers": "^6.13.1", "js-yaml": "^4.1.0", "rimraf": "^5.0.5", "semver": "^7.5.3", "shelljs": "^0.8.5", - "ts-mocha": "^9.0.0", + "ts-mocha": "^10.0.0", "yargs": "^17.7.2" }, "dependencies": { @@ -23341,6 +22800,11 @@ "balanced-match": "^1.0.0" } }, + "diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==" + }, "ethers": { "version": "6.13.1", "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.1.tgz", @@ -23397,6 +22861,30 @@ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==" }, + "ts-mocha": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/ts-mocha/-/ts-mocha-10.0.0.tgz", + "integrity": "sha512-VRfgDO+iiuJFlNB18tzOfypJ21xn2xbuZyDvJvqpTbWgkAgD17ONGr8t+Tl8rcBtOBdjXp5e/Rk+d39f7XBHRw==", + "requires": { + "ts-node": "7.0.1", + "tsconfig-paths": "^3.5.0" + } + }, + "ts-node": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz", + "integrity": "sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==", + "requires": { + "arrify": "^1.0.0", + "buffer-from": "^1.1.0", + "diff": "^3.1.0", + "make-error": "^1.1.1", + "minimist": "^1.2.0", + "mkdirp": "^0.5.1", + "source-map-support": "^0.5.6", + "yn": "^2.0.0" + } + }, "tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", @@ -23407,6 +22895,11 @@ "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", "requires": {} + }, + "yn": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", + "integrity": "sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==" } } }, @@ -23414,7 +22907,7 @@ "version": "file:packages/relay", "requires": { "@ethersproject/asm": "^5.7.0", - "@hashgraph/sdk": "2.44.0", + "@hashgraph/sdk": "^2.48.1", "@keyvhq/core": "^1.6.9", "@types/chai": "^4.3.0", "@types/mocha": "^9.1.0", @@ -23442,51 +22935,6 @@ "typescript": "^4.6.4" }, "dependencies": { - "@hashgraph/sdk": { - "version": "2.44.0", - "resolved": "https://registry.npmjs.org/@hashgraph/sdk/-/sdk-2.44.0.tgz", - "integrity": "sha512-F+fASqp/8Wp27HFXi2E60qY0Zp60UJWtTonqbIT+TCFbslItbLDJR+p+2FEz3wVCWRq2gJw+1ZMi/CMWtOHYpA==", - "requires": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@grpc/grpc-js": "1.8.2", - "@hashgraph/cryptography": "1.4.8-beta.5", - "@hashgraph/proto": "2.14.0-beta.5", - "axios": "^1.6.4", - "bignumber.js": "^9.1.1", - "bn.js": "^5.1.1", - "crypto-js": "^4.2.0", - "js-base64": "^3.7.4", - "long": "^4.0.0", - "pino": "^8.14.1", - "pino-pretty": "^10.0.0", - "protobufjs": "^7.2.5", - "rfc4648": "^1.5.3", - "utf8": "^3.0.0" - }, - "dependencies": { - "pino": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.21.0.tgz", - "integrity": "sha512-ip4qdzjkAyDDZklUaZkcRFb2iA118H9SgRh8yzTkSQK8HilsOJF7rSY8HoW5+I0M46AZgX/pxbprf2vvzQCE0Q==", - "requires": { - "atomic-sleep": "^1.0.0", - "fast-redact": "^3.1.1", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.2.0", - "pino-std-serializers": "^6.0.0", - "process-warning": "^3.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^3.7.0", - "thread-stream": "^2.6.0" - } - } - } - }, "@noble/curves": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", @@ -23498,18 +22946,14 @@ "@types/node": { "version": "17.0.45", "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", - "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==" + "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==", + "dev": true }, "aes-js": { "version": "4.0.0-beta.5", "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-4.0.0-beta.5.tgz", "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==" }, - "dateformat": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", - "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==" - }, "ethers": { "version": "6.13.0", "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", @@ -23531,115 +22975,6 @@ } } }, - "on-exit-leak-free": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", - "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==" - }, - "pino-abstract-transport": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", - "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", - "requires": { - "readable-stream": "^4.0.0", - "split2": "^4.0.0" - } - }, - "pino-pretty": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.3.1.tgz", - "integrity": "sha512-az8JbIYeN/1iLj2t0jR9DV48/LQ3RC6hZPpapKPkb84Q+yTidMCpgWxIT3N0flnBDilyBQ1luWNpOeJptjdp/g==", - "requires": { - "colorette": "^2.0.7", - "dateformat": "^4.6.3", - "fast-copy": "^3.0.0", - "fast-safe-stringify": "^2.1.1", - "help-me": "^5.0.0", - "joycon": "^3.1.1", - "minimist": "^1.2.6", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.0.0", - "pump": "^3.0.0", - "readable-stream": "^4.0.0", - "secure-json-parse": "^2.4.0", - "sonic-boom": "^3.0.0", - "strip-json-comments": "^3.1.1" - } - }, - "pino-std-serializers": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", - "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==" - }, - "process-warning": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", - "integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==" - }, - "protobufjs": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.3.0.tgz", - "integrity": "sha512-YWD03n3shzV9ImZRX3ccbjqLxj7NokGN0V/ESiBV5xWqrommYHYiihuIyavq03pWSGqlyvYUFmfoMKd+1rPA/g==", - "requires": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "dependencies": { - "long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" - } - } - }, - "readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "requires": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - } - }, - "real-require": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", - "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==" - }, - "sonic-boom": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.8.1.tgz", - "integrity": "sha512-y4Z8LCDBuum+PBP3lSV7RHrXscqksve/bi0as7mhwVnBW+/wUqKT/2Kb7um8yqcFy0duYbbPxzt89Zy2nOCaxg==", - "requires": { - "atomic-sleep": "^1.0.0" - } - }, - "split2": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==" - }, - "thread-stream": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.7.0.tgz", - "integrity": "sha512-qQiRWsU/wvNolI6tbbCKd9iKaTnCXsTwVxhhKM6nctPdujTyztjlbUkUTUymidWcMnZ5pWR0ej4a0tjsW021vw==", - "requires": { - "real-require": "^0.2.0" - } - }, "tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", @@ -23656,9 +22991,9 @@ "@hashgraph/json-rpc-server": { "version": "file:packages/server", "requires": { - "@hashgraph/hedera-local": "^2.22.0", + "@hashgraph/hedera-local": "^2.27.0", "@hashgraph/json-rpc-relay": "file:../relay", - "@hashgraph/sdk": "2.44.0", + "@hashgraph/sdk": "^2.48.1", "@koa/cors": "^5.0.0", "@types/chai": "^4.3.0", "@types/cors": "^2.8.12", @@ -23690,75 +23025,6 @@ "uuid": "^3.3.2" }, "dependencies": { - "@hashgraph/sdk": { - "version": "2.44.0", - "resolved": "https://registry.npmjs.org/@hashgraph/sdk/-/sdk-2.44.0.tgz", - "integrity": "sha512-F+fASqp/8Wp27HFXi2E60qY0Zp60UJWtTonqbIT+TCFbslItbLDJR+p+2FEz3wVCWRq2gJw+1ZMi/CMWtOHYpA==", - "dev": true, - "requires": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@grpc/grpc-js": "1.8.2", - "@hashgraph/cryptography": "1.4.8-beta.5", - "@hashgraph/proto": "2.14.0-beta.5", - "axios": "^1.6.4", - "bignumber.js": "^9.1.1", - "bn.js": "^5.1.1", - "crypto-js": "^4.2.0", - "js-base64": "^3.7.4", - "long": "^4.0.0", - "pino": "^8.14.1", - "pino-pretty": "^10.0.0", - "protobufjs": "^7.2.5", - "rfc4648": "^1.5.3", - "utf8": "^3.0.0" - }, - "dependencies": { - "pino": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.21.0.tgz", - "integrity": "sha512-ip4qdzjkAyDDZklUaZkcRFb2iA118H9SgRh8yzTkSQK8HilsOJF7rSY8HoW5+I0M46AZgX/pxbprf2vvzQCE0Q==", - "dev": true, - "requires": { - "atomic-sleep": "^1.0.0", - "fast-redact": "^3.1.1", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.2.0", - "pino-std-serializers": "^6.0.0", - "process-warning": "^3.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^3.7.0", - "thread-stream": "^2.6.0" - } - }, - "pino-pretty": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.3.1.tgz", - "integrity": "sha512-az8JbIYeN/1iLj2t0jR9DV48/LQ3RC6hZPpapKPkb84Q+yTidMCpgWxIT3N0flnBDilyBQ1luWNpOeJptjdp/g==", - "dev": true, - "requires": { - "colorette": "^2.0.7", - "dateformat": "^4.6.3", - "fast-copy": "^3.0.0", - "fast-safe-stringify": "^2.1.1", - "help-me": "^5.0.0", - "joycon": "^3.1.1", - "minimist": "^1.2.6", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.0.0", - "pump": "^3.0.0", - "readable-stream": "^4.0.0", - "secure-json-parse": "^2.4.0", - "sonic-boom": "^3.0.0", - "strip-json-comments": "^3.1.1" - } - } - } - }, "@noble/curves": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", @@ -23780,16 +23046,10 @@ "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==", "dev": true }, - "dateformat": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", - "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", - "dev": true - }, "ethers": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", - "integrity": "sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==", + "version": "6.13.1", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.1.tgz", + "integrity": "sha512-hdJ2HOxg/xx97Lm9HdCWk949BfYqYWpyw4//78SiwOLgASyfrNszfMUNB2joKjvGUdwhHfaiMMFFwacVVoLR9A==", "dev": true, "requires": { "@adraffy/ens-normalize": "1.10.1", @@ -23798,7 +23058,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" }, "dependencies": { "@types/node": { @@ -23809,105 +23069,6 @@ } } }, - "on-exit-leak-free": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", - "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", - "dev": true - }, - "pino-abstract-transport": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", - "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", - "dev": true, - "requires": { - "readable-stream": "^4.0.0", - "split2": "^4.0.0" - } - }, - "pino-std-serializers": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", - "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==", - "dev": true - }, - "process-warning": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", - "integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==", - "dev": true - }, - "protobufjs": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.3.0.tgz", - "integrity": "sha512-YWD03n3shzV9ImZRX3ccbjqLxj7NokGN0V/ESiBV5xWqrommYHYiihuIyavq03pWSGqlyvYUFmfoMKd+1rPA/g==", - "dev": true, - "requires": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "dependencies": { - "long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", - "dev": true - } - } - }, - "readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "dev": true, - "requires": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - } - }, - "real-require": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", - "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", - "dev": true - }, - "sonic-boom": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.8.1.tgz", - "integrity": "sha512-y4Z8LCDBuum+PBP3lSV7RHrXscqksve/bi0as7mhwVnBW+/wUqKT/2Kb7um8yqcFy0duYbbPxzt89Zy2nOCaxg==", - "dev": true, - "requires": { - "atomic-sleep": "^1.0.0" - } - }, - "split2": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", - "dev": true - }, - "thread-stream": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.7.0.tgz", - "integrity": "sha512-qQiRWsU/wvNolI6tbbCKd9iKaTnCXsTwVxhhKM6nctPdujTyztjlbUkUTUymidWcMnZ5pWR0ej4a0tjsW021vw==", - "dev": true, - "requires": { - "real-require": "^0.2.0" - } - }, "tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", @@ -23915,9 +23076,9 @@ "dev": true }, "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==", "dev": true, "requires": {} } @@ -23926,10 +23087,10 @@ "@hashgraph/json-rpc-ws-server": { "version": "file:packages/ws-server", "requires": { - "@hashgraph/hedera-local": "^2.22.0", + "@hashgraph/hedera-local": "^2.27.0", "@hashgraph/json-rpc-relay": "file:../relay", "@hashgraph/json-rpc-server": "file:../server", - "@hashgraph/sdk": "2.44.0", + "@hashgraph/sdk": "^2.48.1", "@koa/cors": "^5.0.0", "@types/chai": "^4.3.0", "@types/cors": "^2.8.12", @@ -23960,75 +23121,6 @@ "typescript": "^4.5.5" }, "dependencies": { - "@hashgraph/sdk": { - "version": "2.44.0", - "resolved": "https://registry.npmjs.org/@hashgraph/sdk/-/sdk-2.44.0.tgz", - "integrity": "sha512-F+fASqp/8Wp27HFXi2E60qY0Zp60UJWtTonqbIT+TCFbslItbLDJR+p+2FEz3wVCWRq2gJw+1ZMi/CMWtOHYpA==", - "dev": true, - "requires": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@grpc/grpc-js": "1.8.2", - "@hashgraph/cryptography": "1.4.8-beta.5", - "@hashgraph/proto": "2.14.0-beta.5", - "axios": "^1.6.4", - "bignumber.js": "^9.1.1", - "bn.js": "^5.1.1", - "crypto-js": "^4.2.0", - "js-base64": "^3.7.4", - "long": "^4.0.0", - "pino": "^8.14.1", - "pino-pretty": "^10.0.0", - "protobufjs": "^7.2.5", - "rfc4648": "^1.5.3", - "utf8": "^3.0.0" - }, - "dependencies": { - "pino": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.21.0.tgz", - "integrity": "sha512-ip4qdzjkAyDDZklUaZkcRFb2iA118H9SgRh8yzTkSQK8HilsOJF7rSY8HoW5+I0M46AZgX/pxbprf2vvzQCE0Q==", - "dev": true, - "requires": { - "atomic-sleep": "^1.0.0", - "fast-redact": "^3.1.1", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.2.0", - "pino-std-serializers": "^6.0.0", - "process-warning": "^3.0.0", - "quick-format-unescaped": "^4.0.3", - "real-require": "^0.2.0", - "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^3.7.0", - "thread-stream": "^2.6.0" - } - }, - "pino-pretty": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.3.1.tgz", - "integrity": "sha512-az8JbIYeN/1iLj2t0jR9DV48/LQ3RC6hZPpapKPkb84Q+yTidMCpgWxIT3N0flnBDilyBQ1luWNpOeJptjdp/g==", - "dev": true, - "requires": { - "colorette": "^2.0.7", - "dateformat": "^4.6.3", - "fast-copy": "^3.0.0", - "fast-safe-stringify": "^2.1.1", - "help-me": "^5.0.0", - "joycon": "^3.1.1", - "minimist": "^1.2.6", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.0.0", - "pump": "^3.0.0", - "readable-stream": "^4.0.0", - "secure-json-parse": "^2.4.0", - "sonic-boom": "^3.0.0", - "strip-json-comments": "^3.1.1" - } - } - } - }, "@noble/curves": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", @@ -24063,21 +23155,15 @@ "balanced-match": "^1.0.0" } }, - "dateformat": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", - "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", - "dev": true - }, "escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" }, "ethers": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.0.tgz", - "integrity": "sha512-+yyQQQWEntY5UVbCv++guA14RRVFm1rSnO1GoLFdrK7/XRWMoktNgyG9UjwxrQqGBfGyFKknNZ81YpUS2emCgg==", + "version": "6.13.1", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.13.1.tgz", + "integrity": "sha512-hdJ2HOxg/xx97Lm9HdCWk949BfYqYWpyw4//78SiwOLgASyfrNszfMUNB2joKjvGUdwhHfaiMMFFwacVVoLR9A==", "dev": true, "requires": { "@adraffy/ens-normalize": "1.10.1", @@ -24086,7 +23172,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" }, "dependencies": { "@types/node": { @@ -24154,100 +23240,10 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" }, - "on-exit-leak-free": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", - "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", - "dev": true - }, - "pino-abstract-transport": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", - "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", - "dev": true, - "requires": { - "readable-stream": "^4.0.0", - "split2": "^4.0.0" - } - }, - "pino-std-serializers": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", - "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==", - "dev": true - }, "pnpm": { "version": "https://registry.npmjs.org/pnpm/-/pnpm-8.15.7.tgz", "integrity": "sha512-yFzSG22hAzIVaxyiqnnAph7nrS6wRTuIqymSienoypPmCRIyslwHy/YfbfdxKNnISeXJrG5EhU29IRxJ86Z63A==" }, - "process-warning": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", - "integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==", - "dev": true - }, - "protobufjs": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.3.0.tgz", - "integrity": "sha512-YWD03n3shzV9ImZRX3ccbjqLxj7NokGN0V/ESiBV5xWqrommYHYiihuIyavq03pWSGqlyvYUFmfoMKd+1rPA/g==", - "dev": true, - "requires": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "dependencies": { - "long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", - "dev": true - } - } - }, - "readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "dev": true, - "requires": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - } - }, - "real-require": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/real-require/-/real-require-0.2.0.tgz", - "integrity": "sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==", - "dev": true - }, - "sonic-boom": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.8.1.tgz", - "integrity": "sha512-y4Z8LCDBuum+PBP3lSV7RHrXscqksve/bi0as7mhwVnBW+/wUqKT/2Kb7um8yqcFy0duYbbPxzt89Zy2nOCaxg==", - "dev": true, - "requires": { - "atomic-sleep": "^1.0.0" - } - }, - "split2": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", - "dev": true - }, "supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", @@ -24256,15 +23252,6 @@ "has-flag": "^4.0.0" } }, - "thread-stream": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.7.0.tgz", - "integrity": "sha512-qQiRWsU/wvNolI6tbbCKd9iKaTnCXsTwVxhhKM6nctPdujTyztjlbUkUTUymidWcMnZ5pWR0ej4a0tjsW021vw==", - "dev": true, - "requires": { - "real-require": "^0.2.0" - } - }, "tslib": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", @@ -24277,9 +23264,9 @@ "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==" }, "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==", "dev": true, "requires": {} }, @@ -24300,18 +23287,18 @@ } }, "@hashgraph/proto": { - "version": "2.14.0-beta.5", - "resolved": "https://registry.npmjs.org/@hashgraph/proto/-/proto-2.14.0-beta.5.tgz", - "integrity": "sha512-UrIbLdctpD//Ua99Z4PnknbR8220nc1Pzv0nkDJ1emZE9EAi7YOOry2Dw660azQHWfVw/HhqECPdiKrTIZ2b+Q==", + "version": "2.15.0-beta.2", + "resolved": "https://registry.npmjs.org/@hashgraph/proto/-/proto-2.15.0-beta.2.tgz", + "integrity": "sha512-vtkW8rZccnch3FKmNj1bLRZsS0YO3w7PuCj8LNq9HgMP6KzzA7scRk8yLm/XyiD7UHJS/l1cFg0Cj/DDRSwGxQ==", "requires": { "long": "^4.0.0", "protobufjs": "^7.2.4" } }, "@hashgraph/sdk": { - "version": "2.43.0", - "resolved": "https://registry.npmjs.org/@hashgraph/sdk/-/sdk-2.43.0.tgz", - "integrity": "sha512-3MOZDL8Tm+Ciu+e402R9mSPfAUaiv8GCY+G6prUDOJzkNubRGm7gNxpeMlmHDZepc+EOkuq+kOq3QvB+2IvgWQ==", + "version": "2.48.1", + "resolved": "https://registry.npmjs.org/@hashgraph/sdk/-/sdk-2.48.1.tgz", + "integrity": "sha512-ZizLBcgu7bBIx+EuwRWFkBQugAQAkH5ZvKe+dTf53TCVoUw3LPIta+u/hpVIhB9Xm9PJmA9F23DSo+Bmken46Q==", "requires": { "@ethersproject/abi": "^5.7.0", "@ethersproject/bignumber": "^5.7.0", @@ -24319,7 +23306,7 @@ "@ethersproject/rlp": "^5.7.0", "@grpc/grpc-js": "1.8.2", "@hashgraph/cryptography": "1.4.8-beta.5", - "@hashgraph/proto": "2.14.0-beta.5", + "@hashgraph/proto": "2.15.0-beta.2", "axios": "^1.6.4", "bignumber.js": "^9.1.1", "bn.js": "^5.1.1", @@ -24344,27 +23331,27 @@ "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==" }, "pino": { - "version": "8.19.0", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.19.0.tgz", - "integrity": "sha512-oswmokxkav9bADfJ2ifrvfHUwad6MLp73Uat0IkQWY3iAw5xTRoznXbXksZs8oaOUMpmhVWD+PZogNzllWpJaA==", + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/pino/-/pino-8.21.0.tgz", + "integrity": "sha512-ip4qdzjkAyDDZklUaZkcRFb2iA118H9SgRh8yzTkSQK8HilsOJF7rSY8HoW5+I0M46AZgX/pxbprf2vvzQCE0Q==", "requires": { "atomic-sleep": "^1.0.0", "fast-redact": "^3.1.1", "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.1.0", + "pino-abstract-transport": "^1.2.0", "pino-std-serializers": "^6.0.0", "process-warning": "^3.0.0", "quick-format-unescaped": "^4.0.3", "real-require": "^0.2.0", "safe-stable-stringify": "^2.3.1", "sonic-boom": "^3.7.0", - "thread-stream": "^2.0.0" + "thread-stream": "^2.6.0" } }, "pino-abstract-transport": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.1.0.tgz", - "integrity": "sha512-lsleG3/2a/JIWUtf9Q5gUNErBqwIu1tUKTT3dUzaf5DySw9ra1wcqKjJjLX1VTY64Wk1eEOYsVGSaGfCK85ekA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.2.0.tgz", + "integrity": "sha512-Guhh8EZfPCfH+PMXAb6rKOjGQEoy0xlAIn+irODG5kgfYV+BQ0rGYYWTIel3P5mmyXqkYkPmdIkywsn6QKUR1Q==", "requires": { "readable-stream": "^4.0.0", "split2": "^4.0.0" @@ -24432,9 +23419,9 @@ "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==" }, "thread-stream": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.4.1.tgz", - "integrity": "sha512-d/Ex2iWd1whipbT681JmTINKw0ZwOUBZm7+Gjs64DHuX34mmw8vJL2bFAaNacaW72zYiTJxSHi5abUuOi5nsfg==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.7.0.tgz", + "integrity": "sha512-qQiRWsU/wvNolI6tbbCKd9iKaTnCXsTwVxhhKM6nctPdujTyztjlbUkUTUymidWcMnZ5pWR0ej4a0tjsW021vw==", "requires": { "real-require": "^0.2.0" } @@ -37039,6 +36026,7 @@ "version": "9.0.2", "resolved": "https://registry.npmjs.org/ts-mocha/-/ts-mocha-9.0.2.tgz", "integrity": "sha512-WyQjvnzwrrubl0JT7EC1yWmNpcsU3fOuBFfdps30zbmFBgKniSaSOyZMZx+Wq7kytUs5CY+pEbSYEbGfIKnXTw==", + "dev": true, "requires": { "ts-node": "7.0.1", "tsconfig-paths": "^3.5.0" @@ -37047,12 +36035,14 @@ "diff": { "version": "3.5.0", "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==" + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true }, "ts-node": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-7.0.1.tgz", "integrity": "sha512-BVwVbPJRspzNh2yfslyT1PSbl5uIk03EZlb493RKHN4qej/D06n1cEhjlOJG69oFsE7OT8XjpTUcYf6pKTLMhw==", + "dev": true, "requires": { "arrify": "^1.0.0", "buffer-from": "^1.1.0", @@ -37067,7 +36057,8 @@ "yn": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", - "integrity": "sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==" + "integrity": "sha512-uTv8J/wiWTgUTg+9vLTi//leUl5vDQS6uii/emeTb2ssY7vl6QWf2fFbIIGjnhjvbdKlU0ed7QPgY1htTC86jQ==", + "dev": true } } }, diff --git a/package.json b/package.json index 1aaf95b70f..82d108de4f 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "prepare": "husky install" }, "dependencies": { - "@hashgraph/hedera-local": "^2.26.2", + "@hashgraph/hedera-local": "^2.27.0", "@open-rpc/schema-utils-js": "^1.16.1", "@types/find-config": "^1.0.4", "@types/sinon": "^10.0.20", diff --git a/packages/relay/package.json b/packages/relay/package.json index 9e6ccca755..52289f953d 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -49,7 +49,7 @@ }, "dependencies": { "@ethersproject/asm": "^5.7.0", - "@hashgraph/sdk": "2.44.0", + "@hashgraph/sdk": "^2.48.1", "@keyvhq/core": "^1.6.9", "axios": "^1.4.0", "axios-retry": "^3.5.1", diff --git a/packages/server/package.json b/packages/server/package.json index 5e89ace91d..14329d09ee 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -22,8 +22,8 @@ "uuid": "^3.3.2" }, "devDependencies": { - "@hashgraph/hedera-local": "^2.22.0", - "@hashgraph/sdk": "2.44.0", + "@hashgraph/hedera-local": "^2.27.0", + "@hashgraph/sdk": "^2.48.1", "@koa/cors": "^5.0.0", "@types/chai": "^4.3.0", "@types/cors": "^2.8.12", diff --git a/packages/ws-server/package.json b/packages/ws-server/package.json index bb312fa505..0973fb2518 100644 --- a/packages/ws-server/package.json +++ b/packages/ws-server/package.json @@ -23,8 +23,8 @@ "pnpm": "8.15.8" }, "devDependencies": { - "@hashgraph/hedera-local": "^2.22.0", - "@hashgraph/sdk": "2.44.0", + "@hashgraph/hedera-local": "^2.27.0", + "@hashgraph/sdk": "^2.48.1", "@koa/cors": "^5.0.0", "@types/chai": "^4.3.0", "@types/cors": "^2.8.12",