From 257252fb77c4dfde667c4c16e4d0e23d2e421164 Mon Sep 17 00:00:00 2001 From: moscowchill <72578879+moscowchill@users.noreply.github.com> Date: Sun, 25 Oct 2026 07:37:19 +0100 Subject: [PATCH 1/3] fix(deps): express 4.22.3 in the contract exporter (#61) body-parser 1.20.9 (GHSA-27r3-jxmh-p828, a compressed body with trailing bytes stops the process) and proxy-addr 2.0.8 (GHSA-jqcg-44mw-7w3h, trust check bypass with IPv4-mapped IPv6). The exporter is not deployed today; this keeps it safe to run. --- .../contract-exporter/package-lock.json | 30 +++++++++++-------- monitoring/contract-exporter/package.json | 2 +- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/monitoring/contract-exporter/package-lock.json b/monitoring/contract-exporter/package-lock.json index 7c6864f..40a61f3 100644 --- a/monitoring/contract-exporter/package-lock.json +++ b/monitoring/contract-exporter/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@theqrl/web3": "^1.0.3", "dotenv": "^17.4.2", - "express": "^4.22.1", + "express": "^4.22.3", "prom-client": "^15.1.3" }, "devDependencies": { @@ -623,9 +623,9 @@ "license": "MIT" }, "node_modules/body-parser": { - "version": "1.20.8", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.8.tgz", - "integrity": "sha512-JNcyFQ64OiijEkPzUBTCe+hyPXUD/3LEldGQ6iF5LR1w00mx9o7xtDWHXBY2iItjdCFGoilOLNQbH943ut7pHA==", + "version": "1.20.9", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.9.tgz", + "integrity": "sha512-FISIQxV5u91Y9gvuFq3q/tA/qTqLJn3AhRcEvyozyhJTh5OBFFtv827AdHU7Rbyct4r+Ba1/99oFa1Y3yuFsdw==", "license": "MIT", "dependencies": { "bytes": "~3.1.2", @@ -942,14 +942,14 @@ } }, "node_modules/express": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz", - "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==", + "version": "4.22.3", + "resolved": "https://registry.npmjs.org/express/-/express-4.22.3.tgz", + "integrity": "sha512-Bdcs4+3qlpVlx2NRn6fgX2Ue2/gGRaPeawebgclM0ERSCqDpA+owF1fdPwjJUTAJWMTuAaxjDf+hzb0/4eKvvw==", "license": "MIT", "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "~1.20.3", + "body-parser": "~1.20.5", "content-disposition": "~0.5.4", "content-type": "~1.0.4", "cookie": "~0.7.1", @@ -966,9 +966,9 @@ "methods": "~1.1.2", "on-finished": "~2.4.1", "parseurl": "~1.3.3", - "path-to-regexp": "~0.1.12", + "path-to-regexp": "~0.1.13", "proxy-addr": "~2.0.7", - "qs": "~6.14.0", + "qs": "~6.16.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", "send": "~0.19.0", @@ -1655,9 +1655,9 @@ } }, "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz", + "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==", "license": "MIT", "dependencies": { "forwarded": "0.2.0", @@ -1665,6 +1665,10 @@ }, "engines": { "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" } }, "node_modules/pstree.remy": { diff --git a/monitoring/contract-exporter/package.json b/monitoring/contract-exporter/package.json index 2ea5e8f..94f7553 100644 --- a/monitoring/contract-exporter/package.json +++ b/monitoring/contract-exporter/package.json @@ -10,7 +10,7 @@ "dependencies": { "@theqrl/web3": "^1.0.3", "prom-client": "^15.1.3", - "express": "^4.22.1", + "express": "^4.22.3", "dotenv": "^17.4.2" }, "devDependencies": { From 5fb90b3d0a6707278ab9cd4e93f2d1fe713ccfae Mon Sep 17 00:00:00 2001 From: moscowchill <72578879+moscowchill@users.noreply.github.com> Date: Tue, 3 Nov 2026 21:30:51 +0100 Subject: [PATCH 2/3] chore(deps): upgrade @theqrl/web3 to 2.0.0 (#62) * chore(deps): upgrade @theqrl/web3 to 2.0.0 in the tooling and exporter The root tooling and monitoring/contract-exporter move from ^1.0.3 to ^2.0.0. A caret range never crosses a major, so both needed the edit. Every @theqrl/web3* package resolves to 2.0.0 with one copy each, and web3-qrl-iban and web3-providers-ipc leave both trees with the umbrella. Root overrides: - Drop the $-overrides for @theqrl/mldsa87, @theqrl/wallet.js and @theqrl/qrl-cryptography. 2.0.0 pins mldsa87 2.2.0, wallet.js 6.3.0 and qrl-cryptography 0.3.3 itself, and npm ls shows a single copy of each. - Keep ws ^8.21.0 as the ws security floor; it lifts the providers-ws pin from 8.22.0 to 8.22.1. - Keep tmp and follow-redirects. Nothing in the current tree resolves them; they stay as floors for a future dependency. The exporter had no crypto overrides and now gets mldsa87 2.2.0, wallet.js 6.3.0 and qrl-cryptography 0.3.3 (from 2.1.3, 6.2.3, 0.3.0). Its qs override is unrelated and stays. npm audit: root 17 high to 0. Exporter 22 (17 high, 5 moderate) to 5 moderate, the qs, express, body-parser, minimatch and nodemon entries it already had. The 17 highs were the web3 chain over the validator's nested zod 3.22.3; 2.0.0's validator ships zod 4.6.7. No source change is needed here: the scripts sign type 2 with fee-market fields, deployer seeds are already normalized to 0x, and the finality proposal ids encode identically under both versions. * test(tooling): drive the exporter and deployer loader through web3 2.0.0 The existing suites hand both modules a fake web3, so nothing showed that they work with the installed client. - native-monitoring: the exporter scrapes one block through the real @theqrl/web3 client and a local JSON-RPC endpoint that echoes request ids. 2.0.0 refuses a reply with another id, decodes addresses as checksummed Q addresses and decodes every word strictly; the finality and portfolio bindings go through those decoded addresses. The case passes on 1.0.3 as well, so the exporter's behaviour is unchanged. - loadDeployer: a bare, 0X and padded 0x seed each reach web3 as the 0x form and load the same account. 2.0.0 refuses the bare hex with InvalidSeedError, which the case also pins; 1.0.3 accepted it. * fix(frontend): upgrade to @theqrl/web3 2.0.0 and filter logs by its 64-byte topic The staking frontend moves from ^1.0.3 to ^2.0.0. Every @theqrl/web3* package resolves to 2.0.0 with one copy each. The exact overrides for @theqrl/mldsa87 (2.2.0), @theqrl/wallet.js (6.3.0) and @theqrl/qrl-cryptography (0.3.3) are dropped: 2.0.0 pins the same versions, and @qrlwallet/connect's ^2.1.1 mldsa87 range dedupes to the same copy. The overrides for brace-expansion, esbuild, js-yaml, nanoid, postcss and socket.io-parser pin packages outside web3 and stay. npm audit: production 17 high to 0; the full tree 32 to 15, the eslint, minimatch, brace-expansion, source-map-js and vite entries it already had. Activity feed: abi.encodeEventSignature returned the bare 32-byte keccak hash in 1.x and returns the 64-byte VM64 topic in 2.0.0, the hash in the high 32 bytes and zeros in the low 32 bytes. nativeEventTopics required the 32-byte form and padded it, so on 2.0.0 every activity query threw "Invalid native event filter": a connected account saw "Activity history is unavailable from this RPC" and an empty refund list. It now takes the 64-byte topic and requires the zero low half. The qrl_getLogs request is byte-for-byte the one 1.0.3 sent. A 32-byte signature fails closed before any request, so a future change in the library's topic layout shows up as an error. The comment above the raw request named a 1.x validator limit that 2.0.0 lifts; it now records that history and why the request stays raw. Tests: the topic fixtures use the 64-byte form, the decoder test checks that the high half is keccak256 of the event signature, and new cases refuse the 32-byte width, a low-aligned hash and a non-zero low half. * test(frontend): pin the checksummed beneficiary web3 2.0.0 decodes Since @theqrl/web3 2.0.0, decoded addresses come back with QIP-55 checksum casing; 1.x returned the lowercase body. The refund list checks each getPending beneficiary with isQrlAddress, which accepts a mixed-case body only when it matches the app's own SHAKE-256 checksum. The existing case used a digits-only address, where casing never shows. The new case decodes a getPending record with the installed web3, for an account with hex letters, checks that the beneficiary is mixed case, and expects the refund list to hold the deposit with no activity error. --- frontend/package-lock.json | 789 ++++------------- frontend/package.json | 5 +- frontend/src/stores/poolStore.ts | 6 +- frontend/src/utils/nativeLogs.test.ts | 38 +- frontend/src/utils/nativeLogs.ts | 16 +- .../src/utils/poolStoreTransactions.test.ts | 75 +- .../contract-exporter/package-lock.json | 646 ++++---------- monitoring/contract-exporter/package.json | 2 +- package-lock.json | 790 ++++-------------- package.json | 5 +- scripts/loadDeployer.test.js | 17 + scripts/native-monitoring.test.js | 77 ++ 12 files changed, 691 insertions(+), 1775 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 5a196c7..49a3422 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -17,7 +17,7 @@ "@qrlwallet/connect-ui": "0.3.0", "@radix-ui/react-slot": "^1.1.2", "@radix-ui/react-tabs": "^1.1.1", - "@theqrl/web3": "^1.0.3", + "@theqrl/web3": "^2.0.0", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "lucide-react": "^0.562.0", @@ -656,9 +656,9 @@ } }, "node_modules/@ethereumjs/rlp": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-10.1.1.tgz", - "integrity": "sha512-jbnWTEwcpoY+gE0r+wxfDG9zgiu54DcTcwnc9sX3DsqKR4l5K7x2V8mQL3Et6hURa4DuT9g7z6ukwpBLFchszg==", + "version": "10.1.3", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-10.1.3.tgz", + "integrity": "sha512-d795YWkN6O8EJh/PgJ2zZKCdBMl8OlqkuVQESoidH666gaFtUuJ01jDtiuqfyOqTNcTdGhHi8LkQv1WEZzvZZw==", "license": "MPL-2.0", "bin": { "rlp": "bin/rlp.cjs" @@ -761,27 +761,6 @@ "@ethersproject/logger": "^5.8.0" } }, - "node_modules/@ethersproject/strings": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.8.0.tgz", - "integrity": "sha512-qWEAk0MAvl0LszjdfnZ2uC8xbR2wdv4cDabyHiBh3Cldq/T8dPH3V4BbBsAYJUeonwD+8afVXld274Ls+Y1xXg==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/logger": "^5.8.0" - } - }, "node_modules/@fontsource-variable/instrument-sans": { "version": "5.2.8", "resolved": "https://registry.npmjs.org/@fontsource-variable/instrument-sans/-/instrument-sans-5.2.8.tgz", @@ -2285,9 +2264,9 @@ } }, "node_modules/@theqrl/abi": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/abi/-/abi-1.0.3.tgz", - "integrity": "sha512-Pd+1jtkSXVETIow3ZjKJhcMJswOfs0dyhJyys45PXNaVx0K3GzY27cVwuBe9EAD5di5eQ9uaVJZjbiZIRkg4IA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/abi/-/abi-2.0.0.tgz", + "integrity": "sha512-2G3Y5PmtPzhgM5IStp87nUxxNZjYSBEL6raobN/2hQCOhISIlw4QsoN/2eWsI45i3PGivrqjdGWW7dzYwWqG2Q==", "license": "MIT", "dependencies": { "@ethersproject/bignumber": "5.8.0", @@ -2295,8 +2274,8 @@ "@ethersproject/constants": "5.8.0", "@ethersproject/logger": "5.8.0", "@ethersproject/properties": "5.8.0", - "@ethersproject/strings": "5.8.0", - "@theqrl/web3-utils": "1.0.3" + "@theqrl/qrl-cryptography": "0.3.3", + "@theqrl/web3-utils": "^2.0.0" }, "engines": { "node": ">=20.19.0" @@ -2341,143 +2320,141 @@ } }, "node_modules/@theqrl/web3": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3/-/web3-1.0.3.tgz", - "integrity": "sha512-AO/BeNtU/l7//87xAFYtrM/GFdV99DwVqGSqTzw38+WQpplBr3dURmd/ixXVHMsYEuEy+ewCR1h/IqypKeR6Lg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3/-/web3-2.0.0.tgz", + "integrity": "sha512-OKl+rPVFpsOdnbJC88VkAn3q7cjZskB23iKym1IHl3NcXxjocZ93ElWB9gMOhk3W4PPqvB2V1X/y1AOfDph8WA==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-net": "1.0.3", - "@theqrl/web3-providers-http": "1.0.3", - "@theqrl/web3-providers-ws": "1.0.3", - "@theqrl/web3-qrl": "1.0.3", - "@theqrl/web3-qrl-abi": "1.0.3", - "@theqrl/web3-qrl-accounts": "1.0.3", - "@theqrl/web3-qrl-contract": "1.0.3", - "@theqrl/web3-qrl-iban": "1.0.3", - "@theqrl/web3-qrl-qrns": "1.0.3", - "@theqrl/web3-rpc-methods": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-net": "^2.0.0", + "@theqrl/web3-providers-http": "^2.0.0", + "@theqrl/web3-providers-ws": "^2.0.0", + "@theqrl/web3-qrl": "^2.0.0", + "@theqrl/web3-qrl-abi": "^2.0.0", + "@theqrl/web3-qrl-accounts": "^2.0.0", + "@theqrl/web3-qrl-contract": "^2.0.0", + "@theqrl/web3-qrl-qrns": "^2.0.0", + "@theqrl/web3-rpc-methods": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-core": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-core/-/web3-core-1.0.3.tgz", - "integrity": "sha512-s8PUFBBC/f/HxYUxKz6Xju38tfUZ3GBlzwPS5bdyxipwEzhgfh8BZgrROZ2ZrRL1HowZI7OblY7oN9FQw6EWLQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-core/-/web3-core-2.0.0.tgz", + "integrity": "sha512-o8UfaH09qdf5BU7SkYxt3Y+LeSatgO/Y2u4BnzQ+1yWWpycKgPqpXnGi597KPsQniPSbuJrZ8XrdJVP15eiZiw==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-providers-http": "1.0.3", - "@theqrl/web3-providers-ws": "1.0.3", - "@theqrl/web3-qrl-iban": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-providers-http": "^2.0.0", + "@theqrl/web3-providers-ws": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0" }, "engines": { "node": ">=20.19.0" - }, - "optionalDependencies": { - "@theqrl/web3-providers-ipc": "1.0.3" } }, "node_modules/@theqrl/web3-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@theqrl/web3-errors/-/web3-errors-1.0.2.tgz", - "integrity": "sha512-UwUPXAbA5+Z+OtKEknZJnCCssnohriycMuVaWnboBRQPLv4hHrFWnubOLJi6D3+xGlCk3TCbMlm2SiuZumbq8A==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-errors/-/web3-errors-2.0.0.tgz", + "integrity": "sha512-0KTuHm8iPgehN5Xy0V9qqLgCqYbBwrMdcUvu1hombuol8RXT6PZ50TtnI52IYKSyfrhRXpC0PXVUyE1PJb2siA==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-types": "1.0.2" + "@theqrl/web3-types": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-net": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-net/-/web3-net-1.0.3.tgz", - "integrity": "sha512-KRn3mBoRy45Kl9vgzTyeg0TWOxuiGmW2KQE5dI3fCyYfrnQroBNXiw7wlRwZM3DNofZFCzdt1CIbkOlE/iOnRA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-net/-/web3-net-2.0.0.tgz", + "integrity": "sha512-U8p0dhte4YRO7sOIcjeeull4cSbKRs/3/LBO+lUfIM3A+s4yvJTOd3aQ+qEitZd9ssFmqdA1h8zYyV5nTVMLWg==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-rpc-methods": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-rpc-methods": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-providers-http": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-http/-/web3-providers-http-1.0.3.tgz", - "integrity": "sha512-dFDqpOFft8vhxLZ9omZ8qDiLqkHcaKo0HvI8IX8lhFxuXsxRa28NracYn2MjxTR3p45oqrc9VbK3BJ2aHG5PxA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-http/-/web3-providers-http-2.0.0.tgz", + "integrity": "sha512-x02qv6ppJc21N18QQt7GhM38FeaDatO/o8lJ43enZM7/qteZfdvC0XOVcP4I94iAzPrLGrLzeLoJJ0tswHSBXw==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", "cross-fetch": "4.1.0" }, "engines": { "node": ">=20.19.0" } }, - "node_modules/@theqrl/web3-providers-ipc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-ipc/-/web3-providers-ipc-1.0.3.tgz", - "integrity": "sha512-ALqjX/8iB9SgAnCihZvOCjIS4efyEpthZ/72ZjOza4TX8HNx8n88vVXO9fBF0JOZSJDxq8EFcPyVqoa8HqKJmg==", + "node_modules/@theqrl/web3-providers-ws": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-ws/-/web3-providers-ws-2.0.0.tgz", + "integrity": "sha512-+I2ysv+owsJ6yuuujuD0T9EbU+H8wZ/3qxqhGkTe0lvV/53iPIllPFE8+mVmRQmMr9daLW2TCm/jnAS+0/Zczg==", "license": "LGPL-3.0", - "optional": true, "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3" + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@types/ws": "8.18.2", + "isomorphic-ws": "5.0.0", + "ws": "8.22.0" }, "engines": { "node": ">=20.19.0" } }, - "node_modules/@theqrl/web3-providers-ws": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-ws/-/web3-providers-ws-1.0.3.tgz", - "integrity": "sha512-kFYTTbpuRZpRw+i/+EKHXHZgvj3xC64tQZjNeU+1+S3qW9rZNy5i8gJxZAPzOkRwMYncbS3wv5KRxkbDh/KEGw==", - "license": "LGPL-3.0", - "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@types/ws": "8.18.1", - "isomorphic-ws": "5.0.0", - "ws": "8.21.0" - }, + "node_modules/@theqrl/web3-providers-ws/node_modules/ws": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.0.tgz", + "integrity": "sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==", + "license": "MIT", "engines": { - "node": ">=20.19.0" + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } } }, "node_modules/@theqrl/web3-qrl": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl/-/web3-qrl-1.0.3.tgz", - "integrity": "sha512-t1wG9jfrzKGIlPS7YDNiR/HzR52R5tpf/Q/+BEaO19rZFS0dD371Q2zmL43W/4qsfxiIXif9A6oD+nDqh54+oA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl/-/web3-qrl-2.0.0.tgz", + "integrity": "sha512-fT6pzz6XASTri1Gqv7rD6yMXjeeyXWT+Ag38O3775Bvcg+dRkLpnAlLhbIwK8vs5NA0Oa9vg8304yB/jUs2dJA==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/wallet.js": "6.2.3", - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-net": "1.0.3", - "@theqrl/web3-providers-ws": "1.0.3", - "@theqrl/web3-qrl-abi": "1.0.3", - "@theqrl/web3-qrl-accounts": "1.0.3", - "@theqrl/web3-rpc-methods": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3", + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-net": "^2.0.0", + "@theqrl/web3-qrl-abi": "^2.0.0", + "@theqrl/web3-qrl-accounts": "^2.0.0", + "@theqrl/web3-rpc-methods": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0", "setimmediate": "1.0.5" }, "engines": { @@ -2485,38 +2462,34 @@ } }, "node_modules/@theqrl/web3-qrl-abi": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-abi/-/web3-qrl-abi-1.0.3.tgz", - "integrity": "sha512-thtgZLMVnfoukBfp8/n8QP/DgIZJhfR4G3w0Wm2KHVP+l2zjylkjnup0ZKxjDcDKTHPr+8q+B+50OttHAt1v2w==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-abi/-/web3-qrl-abi-2.0.0.tgz", + "integrity": "sha512-0DF+4rmvuLKKNwHOk3XiXfFvd7yUzDuJX5+EPOfgjborZKayx/g92ZIvZ0ZF6R8qQKiQVIom79tI7p2JRDcZRQ==", "license": "LGPL-3.0", "dependencies": { - "@ethersproject/bignumber": "5.8.0", - "@theqrl/abi": "1.0.3", - "@theqrl/wallet.js": "6.2.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3", - "crc-32": "1.2.2" + "@theqrl/abi": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-qrl-accounts": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-accounts/-/web3-qrl-accounts-1.0.3.tgz", - "integrity": "sha512-LhnI2GKczPPImsdKDv8Cx0sQAMnBK89FrA9oIe2XB+rVizlzG5TRwNZbN+QuoKhhpkWzk3bKpb2UUXM/1Zm0rA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-accounts/-/web3-qrl-accounts-2.0.0.tgz", + "integrity": "sha512-MQU3OjBorl/yFwk6DKFSCdguvbJeRp5GSM8it9Sn/C6iVwCNevrK6yUC3QunG/+bosSpQerwMRiuhUe3+ak9QQ==", "license": "LGPL-3.0", "dependencies": { - "@ethereumjs/rlp": "10.1.1", - "@theqrl/mldsa87": "2.1.3", - "@theqrl/qrl-cryptography": "0.3.0", - "@theqrl/wallet.js": "6.2.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3", + "@ethereumjs/rlp": "10.1.3", + "@theqrl/mldsa87": "2.2.0", + "@theqrl/qrl-cryptography": "0.3.3", + "@theqrl/wallet.js": "6.3.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0", "crc-32": "1.2.2" }, "engines": { @@ -2524,107 +2497,91 @@ } }, "node_modules/@theqrl/web3-qrl-contract": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-contract/-/web3-qrl-contract-1.0.3.tgz", - "integrity": "sha512-iLH1PbWQpPuMaDKVYhc0Bmu47C+T2TFkolsuTaIhwNy98a0gMq/qUfeIZpMADVH/O+IkYxTpZ349u0KiMiqjMA==", - "license": "LGPL-3.0", - "dependencies": { - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-qrl": "1.0.3", - "@theqrl/web3-qrl-abi": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" - }, - "engines": { - "node": ">=20.19.0" - } - }, - "node_modules/@theqrl/web3-qrl-iban": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-iban/-/web3-qrl-iban-1.0.3.tgz", - "integrity": "sha512-WstKSRoGHnoSifHxmQQXPAmTqN94mWSdEX9VRPtNyKOMRiMAGGn+vYzvCnyKzCdGUYQLJilj2VxlU1J5F/Qdpw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-contract/-/web3-qrl-contract-2.0.0.tgz", + "integrity": "sha512-z+LBwQZEiB+tMiF+kd+OEKefStZqrnLFdIgb5iyocuEcUF0FRdV7qX+im+fA4fsiCgzVxNdvhSEyZrrTTDptvA==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-qrl": "^2.0.0", + "@theqrl/web3-qrl-abi": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-qrl-qrns": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-qrns/-/web3-qrl-qrns-1.0.3.tgz", - "integrity": "sha512-ROe9CzPKxgywfqYbv7BdMvtHCUyqJyx/+BEQBkTNFw5M8GAt/mxRro5DoGP7jgngevQ7pw47RQUEKbGKscUyfQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-qrns/-/web3-qrl-qrns-2.0.0.tgz", + "integrity": "sha512-ULMR0i1mwNNwKNgniDM0HTwMxJv1QiBpTvz/fhyihz27+gRZVDBoZa22tHhvioPe1aj4kPYOj3oL7DoNDkdx1Q==", "license": "LGPL-3.0", "dependencies": { "@adraffy/ens-normalize": "1.11.1", - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-net": "1.0.3", - "@theqrl/web3-qrl": "1.0.3", - "@theqrl/web3-qrl-contract": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-net": "^2.0.0", + "@theqrl/web3-qrl": "^2.0.0", + "@theqrl/web3-qrl-contract": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-rpc-methods": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-rpc-methods/-/web3-rpc-methods-1.0.3.tgz", - "integrity": "sha512-1vmo0Vko7oh5V52kc9tUKOxxmvFFdavoEcdEBrQyLQAMzLRNPGHHRjO9d7kMGOgJPiYzGduGYae29SKn2JIRpg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-rpc-methods/-/web3-rpc-methods-2.0.0.tgz", + "integrity": "sha512-B2k40W4VRTzUy8jWIpBJ3Zy1JKp78SDu+FBC7EP0TXfyPrlE/YIfvXMRmLbdW2tGox0FC4Zy9TGTv+JCQTMAYg==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-types": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@theqrl/web3-types/-/web3-types-1.0.2.tgz", - "integrity": "sha512-Coz6+BuNPbgR34hbVwxnLEETvD3PSYCRQKQ4kolIPDczk8mDEYIwa7TyCegRcklbrH9Hc765l4BMsDZI0QsmDQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-types/-/web3-types-2.0.0.tgz", + "integrity": "sha512-C4tn4RnETwfTWmH9s7l4lL4rU9oZZuxTpSiOSr/QwcaF09AISREd9K2Am3C6pZ/KbZ0HTQYPvjOEg9ve4P3PPw==", "license": "LGPL-3.0", "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-utils": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-utils/-/web3-utils-1.0.3.tgz", - "integrity": "sha512-ChCz/HUqUIP7XFivTIYpzZLqEow0FcIOGvZ/ayiyXLjneOdXhd2ylyqUy8eb/494FYDj7KujfPUPe3OUgt4gFQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-utils/-/web3-utils-2.0.0.tgz", + "integrity": "sha512-NFdUvaa6/rOUqUamrzx95Oph/1Xi7Zz0C9pIem3RKQBIBHORmqpl9sxxUgyjBoH4HMcAD/JungqxhFnEHT3WYQ==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/qrl-cryptography": "0.3.0", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/qrl-cryptography": "0.3.3", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-validator": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-validator/-/web3-validator-1.0.3.tgz", - "integrity": "sha512-O5VaGMf9z/Zy4kH9nqnwVcGoVnXiIXW81YzG9RUY0S9IURtp9+bdCiPiOo8KVJHUXpgubIvEWXeLLAqO6+kvjQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-validator/-/web3-validator-2.0.0.tgz", + "integrity": "sha512-cR3WE+hQrXmvHvNyzQiRyaL1dz5PJWDlbMl/qcHdw648r6lifhRBugJVzq/Z1ASA0R3DhPLIWiyyGJ2z1l65Bw==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/qrl-cryptography": "0.3.0", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "util": "0.12.5", - "zod": "3.22.3" + "@theqrl/qrl-cryptography": "0.3.3", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "zod": "4.6.7" }, "engines": { "node": ">=20.19.0" @@ -2674,9 +2631,9 @@ } }, "node_modules/@types/ws": { - "version": "8.18.1", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", - "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==", + "version": "8.18.2", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.2.tgz", + "integrity": "sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==", "license": "MIT", "dependencies": { "@types/node": "*" @@ -3052,21 +3009,6 @@ "dev": true, "license": "Python-2.0" }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "license": "MIT", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -3091,53 +3033,6 @@ "concat-map": "0.0.1" } }, - "node_modules/call-bind": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", - "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "get-intrinsic": "^1.3.0", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -3313,23 +3208,6 @@ "dev": true, "license": "MIT" }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/detect-libc": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", @@ -3346,20 +3224,6 @@ "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==", "license": "MIT" }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -3402,36 +3266,6 @@ "node": ">=10.13.0" } }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", - "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/esbuild": { "version": "0.28.1", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz", @@ -3767,21 +3601,6 @@ "dev": true, "license": "ISC" }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -3797,24 +3616,6 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/generator-function": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", - "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -3824,43 +3625,6 @@ "node": "6.* || 8.* || >= 10.*" } }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", @@ -3887,18 +3651,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", @@ -3916,57 +3668,6 @@ "node": ">=8" } }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", - "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", @@ -4004,40 +3705,6 @@ "node": ">=0.8.19" } }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" - }, - "node_modules/is-arguments": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", - "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -4057,25 +3724,6 @@ "node": ">=8" } }, - "node_modules/is-generator-function": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", - "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "generator-function": "^2.0.0", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -4089,39 +3737,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -4519,15 +4134,6 @@ "@jridgewell/sourcemap-codec": "^1.5.5" } }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/minimatch": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", @@ -4748,15 +4354,6 @@ "node": ">=10.13.0" } }, - "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/postcss": { "version": "8.5.25", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.25.tgz", @@ -4994,23 +4591,6 @@ "estree-walker": "^0.6.1" } }, - "node_modules/safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/scheduler": { "version": "0.27.0", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", @@ -5036,23 +4616,6 @@ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", "license": "ISC" }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", @@ -5323,19 +4886,6 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, - "node_modules/util": { - "version": "0.12.5", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", - "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "which-typed-array": "^1.1.2" - } - }, "node_modules/vite": { "version": "7.3.5", "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.5.tgz", @@ -5449,27 +4999,6 @@ "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", "license": "ISC" }, - "node_modules/which-typed-array": { - "version": "1.1.22", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.22.tgz", - "integrity": "sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw==", - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/word-wrap": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", @@ -5630,9 +5159,9 @@ } }, "node_modules/zod": { - "version": "3.22.3", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.3.tgz", - "integrity": "sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug==", + "version": "4.6.7", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" diff --git a/frontend/package.json b/frontend/package.json index b493b40..90e0dd4 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -26,7 +26,7 @@ "@qrlwallet/connect-ui": "0.3.0", "@radix-ui/react-slot": "^1.1.2", "@radix-ui/react-tabs": "^1.1.1", - "@theqrl/web3": "^1.0.3", + "@theqrl/web3": "^2.0.0", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "lucide-react": "^0.562.0", @@ -59,9 +59,6 @@ "node": ">=22.22.0" }, "overrides": { - "@theqrl/mldsa87": "2.2.0", - "@theqrl/qrl-cryptography": "0.3.3", - "@theqrl/wallet.js": "6.3.0", "brace-expansion@1": "1.1.18", "brace-expansion@5": "5.0.9", "esbuild": "0.28.1", diff --git a/frontend/src/stores/poolStore.ts b/frontend/src/stores/poolStore.ts index 99e3e9f..6d1aefe 100644 --- a/frontend/src/stores/poolStore.ts +++ b/frontend/src/stores/poolStore.ts @@ -1206,8 +1206,10 @@ export class PoolStore { `${event.name}(${event.inputs.map((input) => input.type).join(",")})`, ); const topics = nativeEventTopics(signature, beneficiary); - // The SDK's getPastEvents filter still assumes narrower log topics. The - // unmodified native node uses VM64 topics; keep its native ABI decoder. + // The unmodified native node uses VM64 topics. @theqrl/web3 1.x's filter + // validator accepted only 32-byte topics, so this request went out raw. + // 2.0.0 validates 64-byte topics; the raw request stays because it sends + // exactly the filter checked below, and the native ABI decoder reads it. const response = await fetch(this.network.rpcUrl, { method: "POST", headers: { "content-type": "application/json" }, diff --git a/frontend/src/utils/nativeLogs.test.ts b/frontend/src/utils/nativeLogs.test.ts index f6fbd01..55d2394 100644 --- a/frontend/src/utils/nativeLogs.test.ts +++ b/frontend/src/utils/nativeLogs.test.ts @@ -4,18 +4,28 @@ import { Web3 } from "@theqrl/web3"; import { nativeEventTopics, matchesNativeTopics } from "./nativeLogs.ts"; import { NativeQrlPoolABI } from "../abi/NativeQrlPool.ts"; -const signature = +// keccak256("DepositQueued(address,uint256,uint256)") and its VM64 topic, +// the hash in the high 32 bytes and zeros in the low 32 bytes. +const hash = "0xff465791f48805b0254fc0e26cc605e27ef7706d8ee0cf018f8696f58db83679"; +const signature = hash + "00".repeat(32); const beneficiary = "Q" + "12".repeat(32) + "ab".repeat(32); void test("native event filters retain complete 64-byte addresses and high-aligned signature hashes", () => { const topics = nativeEventTopics(signature, beneficiary); - assert.equal(topics[0], signature + "00".repeat(32)); + assert.equal(topics[0], signature); assert.equal(topics[1], "0x" + "12".repeat(32) + "ab".repeat(32)); - assert(!matchesNativeTopics([signature, topics[1]], topics)); + assert.deepEqual( + nativeEventTopics( + signature.toUpperCase().replace(/^0X/, "0x"), + beneficiary, + ), + topics, + ); + assert(!matchesNativeTopics([hash, topics[1]], topics)); assert( !matchesNativeTopics( - ["0x" + "00".repeat(32) + signature.slice(2), topics[1]], + ["0x" + "00".repeat(32) + hash.slice(2), topics[1]], topics, ), ); @@ -34,10 +44,16 @@ void test("native ABI decoder reads the deployed DepositQueued word layout witho (item) => item.type === "event" && item.name === "DepositQueued", ); assert(event); + // @theqrl/web3 2.0.0 returns the VM64 topic itself; 1.x returned the bare + // 32-byte hash, which nativeEventTopics now refuses. assert.equal( web3.qrl.abi.encodeEventSignature("DepositQueued(address,uint256,uint256)"), signature, ); + assert.equal( + web3.utils.keccak256("DepositQueued(address,uint256,uint256)"), + hash, + ); const words = nativeEventTopics(signature, beneficiary); const data = "0x" + (20000n * 10n ** 18n).toString(16).padStart(128, "0"); const decoded = web3.qrl.abi.decodeLog([...event.inputs], data, [ @@ -57,6 +73,20 @@ void test("legacy-width and malformed native log filters reject before RPC", () assert.throws(() => nativeEventTopics(signature + "00", "Q" + "11".repeat(64)), ); + // The bare 32-byte hash that @theqrl/web3 1.x returned. + assert.throws(() => nativeEventTopics(hash, beneficiary), { + message: "Invalid native event filter", + }); + // A 64-byte word that is not a high-aligned hash. + assert.throws(() => + nativeEventTopics("0x" + "00".repeat(32) + hash.slice(2), beneficiary), + ); + assert.throws(() => + nativeEventTopics(hash + "00".repeat(31) + "01", beneficiary), + ); + assert.throws(() => + nativeEventTopics("0X" + signature.slice(2), beneficiary), + ); assert(!matchesNativeTopics(null, [])); assert(!matchesNativeTopics(["0x"], [])); }); diff --git a/frontend/src/utils/nativeLogs.ts b/frontend/src/utils/nativeLogs.ts index c1dc859..459bc09 100644 --- a/frontend/src/utils/nativeLogs.ts +++ b/frontend/src/utils/nativeLogs.ts @@ -1,15 +1,23 @@ import { isQrlAddress } from "./qrlAddress.ts"; import { isArray } from "./guards.ts"; -/** Native VM64 topics: bytes32 signatures occupy the high bytes; addresses use all 64 bytes. */ +/** + * Native VM64 topics: an event signature topic holds the 32-byte keccak hash + * in its high bytes and zeros in its low 32 bytes, the 64-byte form that + * `abi.encodeEventSignature` returns since @theqrl/web3 2.0.0 (1.x returned + * the bare 32-byte hash). Addresses use all 64 bytes. + */ export function nativeEventTopics( - signature: string, + signatureTopic: string, beneficiary: string, ): [string, string] { - if (!/^0x[0-9a-fA-F]{64}$/.test(signature) || !isQrlAddress(beneficiary)) + if ( + !/^0x[0-9a-fA-F]{64}0{64}$/.test(signatureTopic) || + !isQrlAddress(beneficiary) + ) throw new Error("Invalid native event filter"); return [ - signature.toLowerCase().padEnd(130, "0"), + signatureTopic.toLowerCase(), `0x${beneficiary.slice(1).toLowerCase()}`, ]; } diff --git a/frontend/src/utils/poolStoreTransactions.test.ts b/frontend/src/utils/poolStoreTransactions.test.ts index 64e57b4..c012442 100644 --- a/frontend/src/utils/poolStoreTransactions.test.ts +++ b/frontend/src/utils/poolStoreTransactions.test.ts @@ -5,6 +5,7 @@ import test from "node:test"; import { buildSync } from "esbuild"; import { Web3 } from "@theqrl/web3"; import { nativePoolMethods } from "./web3/nativePool.ts"; +import { NativeQrlPoolABI } from "../abi/NativeQrlPool.ts"; import { nativeEventTopics } from "./nativeLogs.ts"; import { requireRecord } from "./guards.ts"; import type { PoolStore, TxStatus } from "../stores/poolStore"; @@ -191,6 +192,56 @@ void test("older pending refunds become visible after the latest 64 deposits are assert.deepEqual(reads, [0n]); }); +void test("pending deposits accept the checksummed beneficiary the installed web3 decodes", async () => { + const f = fixture(); + // Hex letters make the QIP-55 checksum casing visible. + const account = `Q${"ab".repeat(32)}${"12".repeat(32)}`; + f.connect(account); + const getPending = NativeQrlPoolABI.find( + (item) => item.type === "function" && item.name === "getPending", + ); + assert(getPending?.type === "function"); + const [output] = getPending.outputs; + assert(output); + const record = offlineWeb3.qrl.abi.decodeParameter( + output, + offlineWeb3.qrl.abi.encodeParameter(output, { + beneficiary: account, + amount: 100n, + requestedBlock: 5n, + cancelled: false, + }), + ); + // Since @theqrl/web3 2.0.0 the decoder returns the checksummed spelling, + // so the beneficiary check meets a mixed-case address; 1.x returned the + // lowercase body. + const beneficiary = String(requireRecord(record).beneficiary); + assert.notEqual(beneficiary, account); + assert.equal(beneficiary.toLowerCase(), account.toLowerCase()); + f.internal.queryNativeEvents = async (name) => + name === "DepositQueued" + ? [ + { + blockNumber: 1n, + transactionHash: oldHash, + returnValues: { id: 0n, amount: 100n }, + }, + ] + : []; + f.internal.getContracts = async () => ({ + pool: { + pendingHead: () => ({ call: async () => 0n }), + getPending: () => ({ call: async () => record }), + }, + }); + + await f.internal.fetchActivity(account); + assert.equal(f.store.activityError, null); + assert.deepEqual(f.store.pendingDeposits, [ + { id: 0n, amount: 100n, requestBlock: 5n }, + ]); +}); + for (const outcome of ["hash", "error"] as const) { void test(`old wallet ${outcome} cannot replace a newer same-account request`, async () => { const f = fixture(); @@ -693,8 +744,12 @@ void test("position and request response guards reject malformed fields", async }); }); -const eventSignature = +// The VM64 topic of DepositQueued(address,uint256,uint256) as +// encodeEventSignature returns it since @theqrl/web3 2.0.0: the keccak hash in +// the high 32 bytes and zeros in the low 32 bytes. +const eventHash = "0xff465791f48805b0254fc0e26cc605e27ef7706d8ee0cf018f8696f58db83679"; +const eventSignature = eventHash + "00".repeat(32); const nativeLog = { address: poolAddress, topics: [ @@ -741,6 +796,24 @@ void test("native event RPC preserves complete topics and exact decoded values", ); }); +void test("native event RPC refuses a 32-byte event signature before any request", async (t) => { + const f = fixture(); + // The width @theqrl/web3 1.x returned. Padding it here would hide a change + // in the library's topic layout, so the filter fails closed. + f.internal.getWeb3 = async () => ({ + qrl: { abi: { encodeEventSignature: () => eventHash } }, + }); + const fetched = t.mock.method( + globalThis, + "fetch", + async () => new Response(JSON.stringify({ result: [nativeLog] })), + ); + await assert.rejects(f.internal.queryNativeEvents("DepositQueued", address), { + message: "Invalid native event filter", + }); + assert.equal(fetched.mock.callCount(), 0); +}); + void test("native event RPC drops malformed envelopes, logs and decoded records", async (t) => { const f = fixture(); f.internal.getWeb3 = async () => offlineWeb3; diff --git a/monitoring/contract-exporter/package-lock.json b/monitoring/contract-exporter/package-lock.json index 40a61f3..1dfab92 100644 --- a/monitoring/contract-exporter/package-lock.json +++ b/monitoring/contract-exporter/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@theqrl/web3": "^1.0.3", + "@theqrl/web3": "^2.0.0", "dotenv": "^17.4.2", "express": "^4.22.3", "prom-client": "^15.1.3" @@ -28,9 +28,9 @@ "license": "MIT" }, "node_modules/@ethereumjs/rlp": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-10.1.1.tgz", - "integrity": "sha512-jbnWTEwcpoY+gE0r+wxfDG9zgiu54DcTcwnc9sX3DsqKR4l5K7x2V8mQL3Et6hURa4DuT9g7z6ukwpBLFchszg==", + "version": "10.1.3", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-10.1.3.tgz", + "integrity": "sha512-d795YWkN6O8EJh/PgJ2zZKCdBMl8OlqkuVQESoidH666gaFtUuJ01jDtiuqfyOqTNcTdGhHi8LkQv1WEZzvZZw==", "license": "MPL-2.0", "bin": { "rlp": "bin/rlp.cjs" @@ -133,31 +133,10 @@ "@ethersproject/logger": "^5.8.0" } }, - "node_modules/@ethersproject/strings": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.8.0.tgz", - "integrity": "sha512-qWEAk0MAvl0LszjdfnZ2uC8xbR2wdv4cDabyHiBh3Cldq/T8dPH3V4BbBsAYJUeonwD+8afVXld274Ls+Y1xXg==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/logger": "^5.8.0" - } - }, "node_modules/@noble/hashes": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz", - "integrity": "sha512-IYqDGiTXab6FniAgnSdZwgWbomxpy9FtYvLKs7wCUs2a8RkITG+DFGO1DM9cr+E3/RgADRpFjrKVaJ1z6sjtEg==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.4.0.tgz", + "integrity": "sha512-X5XaVWZIBCT7HHZGm5I7ZQXDwLG+bGXuSrMQAW+7Zvl87h1kmc1ZB1VSRJcpUfoUrGQp4Fkoxm5kZ+Ms+aW+eA==", "license": "MIT", "engines": { "node": ">= 20.19.0" @@ -176,9 +155,9 @@ } }, "node_modules/@theqrl/abi": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/abi/-/abi-1.0.3.tgz", - "integrity": "sha512-Pd+1jtkSXVETIow3ZjKJhcMJswOfs0dyhJyys45PXNaVx0K3GzY27cVwuBe9EAD5di5eQ9uaVJZjbiZIRkg4IA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/abi/-/abi-2.0.0.tgz", + "integrity": "sha512-2G3Y5PmtPzhgM5IStp87nUxxNZjYSBEL6raobN/2hQCOhISIlw4QsoN/2eWsI45i3PGivrqjdGWW7dzYwWqG2Q==", "license": "MIT", "dependencies": { "@ethersproject/bignumber": "5.8.0", @@ -186,189 +165,166 @@ "@ethersproject/constants": "5.8.0", "@ethersproject/logger": "5.8.0", "@ethersproject/properties": "5.8.0", - "@ethersproject/strings": "5.8.0", - "@theqrl/web3-utils": "1.0.3" + "@theqrl/qrl-cryptography": "0.3.3", + "@theqrl/web3-utils": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/mldsa87": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@theqrl/mldsa87/-/mldsa87-2.1.3.tgz", - "integrity": "sha512-sQxeMZTeJG84v8lK8gRztuHHC2hB6RG2yWQc7oHv19lExG6vB4qvn8nk8/0ffseYXMqfqU5dmZ4jdabk9P3TEg==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@theqrl/mldsa87/-/mldsa87-2.2.0.tgz", + "integrity": "sha512-rujMGT6vdMTQbtVyMiOL1Q3e7VxLrNZqP/disR4m20+nen4e+bjR4wvt/av8M5e0qDNVjO7sjGctlzC81/qVgw==", "license": "MIT", "dependencies": { - "@noble/hashes": "2.2.0" + "@noble/hashes": "2.4.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/qrl-cryptography": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@theqrl/qrl-cryptography/-/qrl-cryptography-0.3.0.tgz", - "integrity": "sha512-2d7QcK/ZQKOmphnj0lSRJLyeXO3o0degg0mjEMHH+5g4LXvrgoVV1i/bTqzS78DgGRB4Mn3kUPXg6QW3KO712w==", + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@theqrl/qrl-cryptography/-/qrl-cryptography-0.3.3.tgz", + "integrity": "sha512-jdfGQrvrlkjz/YFf15aDEwb/2X436XaTlA+JYFcuKHDjpouHHKv8sbkPtPUpjB/b0y+VX2XoMZBwHhZt0UFwkQ==", "license": "MIT", "dependencies": { - "@noble/hashes": "2.2.0", - "@theqrl/mldsa87": "2.1.3" + "@noble/hashes": "2.4.0", + "@theqrl/mldsa87": "2.2.0" }, "engines": { "node": ">=20.19" } }, "node_modules/@theqrl/wallet.js": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/@theqrl/wallet.js/-/wallet.js-6.2.3.tgz", - "integrity": "sha512-1wQcPKDqtLpM5sn6NKEbn4UIJwZ9BWVqG1TbrW1zBRuw8NUaiejjDZQcKwoHrnNV3TQe9dJ1jnu+PLxq9LOqyw==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@theqrl/wallet.js/-/wallet.js-6.3.0.tgz", + "integrity": "sha512-zTZsLIQKm4CaRAs4sfnalunVrFotxRIY6adwDCN01Ts55TrYn0qp8Jbs6Tv3/9cQDGJzEYszN1oIw49WcUActg==", "license": "MIT", "dependencies": { - "@noble/hashes": "2.2.0", - "@theqrl/mldsa87": "2.1.3" + "@noble/hashes": "2.4.0", + "@theqrl/mldsa87": "2.2.0" }, "engines": { "node": ">=20.19" } }, "node_modules/@theqrl/web3": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3/-/web3-1.0.3.tgz", - "integrity": "sha512-AO/BeNtU/l7//87xAFYtrM/GFdV99DwVqGSqTzw38+WQpplBr3dURmd/ixXVHMsYEuEy+ewCR1h/IqypKeR6Lg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3/-/web3-2.0.0.tgz", + "integrity": "sha512-OKl+rPVFpsOdnbJC88VkAn3q7cjZskB23iKym1IHl3NcXxjocZ93ElWB9gMOhk3W4PPqvB2V1X/y1AOfDph8WA==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-net": "1.0.3", - "@theqrl/web3-providers-http": "1.0.3", - "@theqrl/web3-providers-ws": "1.0.3", - "@theqrl/web3-qrl": "1.0.3", - "@theqrl/web3-qrl-abi": "1.0.3", - "@theqrl/web3-qrl-accounts": "1.0.3", - "@theqrl/web3-qrl-contract": "1.0.3", - "@theqrl/web3-qrl-iban": "1.0.3", - "@theqrl/web3-qrl-qrns": "1.0.3", - "@theqrl/web3-rpc-methods": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-net": "^2.0.0", + "@theqrl/web3-providers-http": "^2.0.0", + "@theqrl/web3-providers-ws": "^2.0.0", + "@theqrl/web3-qrl": "^2.0.0", + "@theqrl/web3-qrl-abi": "^2.0.0", + "@theqrl/web3-qrl-accounts": "^2.0.0", + "@theqrl/web3-qrl-contract": "^2.0.0", + "@theqrl/web3-qrl-qrns": "^2.0.0", + "@theqrl/web3-rpc-methods": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-core": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-core/-/web3-core-1.0.3.tgz", - "integrity": "sha512-s8PUFBBC/f/HxYUxKz6Xju38tfUZ3GBlzwPS5bdyxipwEzhgfh8BZgrROZ2ZrRL1HowZI7OblY7oN9FQw6EWLQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-core/-/web3-core-2.0.0.tgz", + "integrity": "sha512-o8UfaH09qdf5BU7SkYxt3Y+LeSatgO/Y2u4BnzQ+1yWWpycKgPqpXnGi597KPsQniPSbuJrZ8XrdJVP15eiZiw==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-providers-http": "1.0.3", - "@theqrl/web3-providers-ws": "1.0.3", - "@theqrl/web3-qrl-iban": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-providers-http": "^2.0.0", + "@theqrl/web3-providers-ws": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0" }, "engines": { "node": ">=20.19.0" - }, - "optionalDependencies": { - "@theqrl/web3-providers-ipc": "1.0.3" } }, "node_modules/@theqrl/web3-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@theqrl/web3-errors/-/web3-errors-1.0.2.tgz", - "integrity": "sha512-UwUPXAbA5+Z+OtKEknZJnCCssnohriycMuVaWnboBRQPLv4hHrFWnubOLJi6D3+xGlCk3TCbMlm2SiuZumbq8A==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-errors/-/web3-errors-2.0.0.tgz", + "integrity": "sha512-0KTuHm8iPgehN5Xy0V9qqLgCqYbBwrMdcUvu1hombuol8RXT6PZ50TtnI52IYKSyfrhRXpC0PXVUyE1PJb2siA==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-types": "1.0.2" + "@theqrl/web3-types": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-net": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-net/-/web3-net-1.0.3.tgz", - "integrity": "sha512-KRn3mBoRy45Kl9vgzTyeg0TWOxuiGmW2KQE5dI3fCyYfrnQroBNXiw7wlRwZM3DNofZFCzdt1CIbkOlE/iOnRA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-net/-/web3-net-2.0.0.tgz", + "integrity": "sha512-U8p0dhte4YRO7sOIcjeeull4cSbKRs/3/LBO+lUfIM3A+s4yvJTOd3aQ+qEitZd9ssFmqdA1h8zYyV5nTVMLWg==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-rpc-methods": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-rpc-methods": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-providers-http": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-http/-/web3-providers-http-1.0.3.tgz", - "integrity": "sha512-dFDqpOFft8vhxLZ9omZ8qDiLqkHcaKo0HvI8IX8lhFxuXsxRa28NracYn2MjxTR3p45oqrc9VbK3BJ2aHG5PxA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-http/-/web3-providers-http-2.0.0.tgz", + "integrity": "sha512-x02qv6ppJc21N18QQt7GhM38FeaDatO/o8lJ43enZM7/qteZfdvC0XOVcP4I94iAzPrLGrLzeLoJJ0tswHSBXw==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", "cross-fetch": "4.1.0" }, "engines": { "node": ">=20.19.0" } }, - "node_modules/@theqrl/web3-providers-ipc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-ipc/-/web3-providers-ipc-1.0.3.tgz", - "integrity": "sha512-ALqjX/8iB9SgAnCihZvOCjIS4efyEpthZ/72ZjOza4TX8HNx8n88vVXO9fBF0JOZSJDxq8EFcPyVqoa8HqKJmg==", - "license": "LGPL-3.0", - "optional": true, - "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3" - }, - "engines": { - "node": ">=20.19.0" - } - }, "node_modules/@theqrl/web3-providers-ws": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-ws/-/web3-providers-ws-1.0.3.tgz", - "integrity": "sha512-kFYTTbpuRZpRw+i/+EKHXHZgvj3xC64tQZjNeU+1+S3qW9rZNy5i8gJxZAPzOkRwMYncbS3wv5KRxkbDh/KEGw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-ws/-/web3-providers-ws-2.0.0.tgz", + "integrity": "sha512-+I2ysv+owsJ6yuuujuD0T9EbU+H8wZ/3qxqhGkTe0lvV/53iPIllPFE8+mVmRQmMr9daLW2TCm/jnAS+0/Zczg==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@types/ws": "8.18.1", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@types/ws": "8.18.2", "isomorphic-ws": "5.0.0", - "ws": "8.21.0" + "ws": "8.22.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-qrl": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl/-/web3-qrl-1.0.3.tgz", - "integrity": "sha512-t1wG9jfrzKGIlPS7YDNiR/HzR52R5tpf/Q/+BEaO19rZFS0dD371Q2zmL43W/4qsfxiIXif9A6oD+nDqh54+oA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl/-/web3-qrl-2.0.0.tgz", + "integrity": "sha512-fT6pzz6XASTri1Gqv7rD6yMXjeeyXWT+Ag38O3775Bvcg+dRkLpnAlLhbIwK8vs5NA0Oa9vg8304yB/jUs2dJA==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/wallet.js": "6.2.3", - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-net": "1.0.3", - "@theqrl/web3-providers-ws": "1.0.3", - "@theqrl/web3-qrl-abi": "1.0.3", - "@theqrl/web3-qrl-accounts": "1.0.3", - "@theqrl/web3-rpc-methods": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3", + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-net": "^2.0.0", + "@theqrl/web3-qrl-abi": "^2.0.0", + "@theqrl/web3-qrl-accounts": "^2.0.0", + "@theqrl/web3-rpc-methods": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0", "setimmediate": "1.0.5" }, "engines": { @@ -376,38 +332,34 @@ } }, "node_modules/@theqrl/web3-qrl-abi": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-abi/-/web3-qrl-abi-1.0.3.tgz", - "integrity": "sha512-thtgZLMVnfoukBfp8/n8QP/DgIZJhfR4G3w0Wm2KHVP+l2zjylkjnup0ZKxjDcDKTHPr+8q+B+50OttHAt1v2w==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-abi/-/web3-qrl-abi-2.0.0.tgz", + "integrity": "sha512-0DF+4rmvuLKKNwHOk3XiXfFvd7yUzDuJX5+EPOfgjborZKayx/g92ZIvZ0ZF6R8qQKiQVIom79tI7p2JRDcZRQ==", "license": "LGPL-3.0", "dependencies": { - "@ethersproject/bignumber": "5.8.0", - "@theqrl/abi": "1.0.3", - "@theqrl/wallet.js": "6.2.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3", - "crc-32": "1.2.2" + "@theqrl/abi": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-qrl-accounts": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-accounts/-/web3-qrl-accounts-1.0.3.tgz", - "integrity": "sha512-LhnI2GKczPPImsdKDv8Cx0sQAMnBK89FrA9oIe2XB+rVizlzG5TRwNZbN+QuoKhhpkWzk3bKpb2UUXM/1Zm0rA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-accounts/-/web3-qrl-accounts-2.0.0.tgz", + "integrity": "sha512-MQU3OjBorl/yFwk6DKFSCdguvbJeRp5GSM8it9Sn/C6iVwCNevrK6yUC3QunG/+bosSpQerwMRiuhUe3+ak9QQ==", "license": "LGPL-3.0", "dependencies": { - "@ethereumjs/rlp": "10.1.1", - "@theqrl/mldsa87": "2.1.3", - "@theqrl/qrl-cryptography": "0.3.0", - "@theqrl/wallet.js": "6.2.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3", + "@ethereumjs/rlp": "10.1.3", + "@theqrl/mldsa87": "2.2.0", + "@theqrl/qrl-cryptography": "0.3.3", + "@theqrl/wallet.js": "6.3.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0", "crc-32": "1.2.2" }, "engines": { @@ -415,125 +367,109 @@ } }, "node_modules/@theqrl/web3-qrl-contract": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-contract/-/web3-qrl-contract-1.0.3.tgz", - "integrity": "sha512-iLH1PbWQpPuMaDKVYhc0Bmu47C+T2TFkolsuTaIhwNy98a0gMq/qUfeIZpMADVH/O+IkYxTpZ349u0KiMiqjMA==", - "license": "LGPL-3.0", - "dependencies": { - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-qrl": "1.0.3", - "@theqrl/web3-qrl-abi": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" - }, - "engines": { - "node": ">=20.19.0" - } - }, - "node_modules/@theqrl/web3-qrl-iban": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-iban/-/web3-qrl-iban-1.0.3.tgz", - "integrity": "sha512-WstKSRoGHnoSifHxmQQXPAmTqN94mWSdEX9VRPtNyKOMRiMAGGn+vYzvCnyKzCdGUYQLJilj2VxlU1J5F/Qdpw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-contract/-/web3-qrl-contract-2.0.0.tgz", + "integrity": "sha512-z+LBwQZEiB+tMiF+kd+OEKefStZqrnLFdIgb5iyocuEcUF0FRdV7qX+im+fA4fsiCgzVxNdvhSEyZrrTTDptvA==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-qrl": "^2.0.0", + "@theqrl/web3-qrl-abi": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-qrl-qrns": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-qrns/-/web3-qrl-qrns-1.0.3.tgz", - "integrity": "sha512-ROe9CzPKxgywfqYbv7BdMvtHCUyqJyx/+BEQBkTNFw5M8GAt/mxRro5DoGP7jgngevQ7pw47RQUEKbGKscUyfQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-qrns/-/web3-qrl-qrns-2.0.0.tgz", + "integrity": "sha512-ULMR0i1mwNNwKNgniDM0HTwMxJv1QiBpTvz/fhyihz27+gRZVDBoZa22tHhvioPe1aj4kPYOj3oL7DoNDkdx1Q==", "license": "LGPL-3.0", "dependencies": { "@adraffy/ens-normalize": "1.11.1", - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-net": "1.0.3", - "@theqrl/web3-qrl": "1.0.3", - "@theqrl/web3-qrl-contract": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-net": "^2.0.0", + "@theqrl/web3-qrl": "^2.0.0", + "@theqrl/web3-qrl-contract": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-rpc-methods": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-rpc-methods/-/web3-rpc-methods-1.0.3.tgz", - "integrity": "sha512-1vmo0Vko7oh5V52kc9tUKOxxmvFFdavoEcdEBrQyLQAMzLRNPGHHRjO9d7kMGOgJPiYzGduGYae29SKn2JIRpg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-rpc-methods/-/web3-rpc-methods-2.0.0.tgz", + "integrity": "sha512-B2k40W4VRTzUy8jWIpBJ3Zy1JKp78SDu+FBC7EP0TXfyPrlE/YIfvXMRmLbdW2tGox0FC4Zy9TGTv+JCQTMAYg==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-types": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@theqrl/web3-types/-/web3-types-1.0.2.tgz", - "integrity": "sha512-Coz6+BuNPbgR34hbVwxnLEETvD3PSYCRQKQ4kolIPDczk8mDEYIwa7TyCegRcklbrH9Hc765l4BMsDZI0QsmDQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-types/-/web3-types-2.0.0.tgz", + "integrity": "sha512-C4tn4RnETwfTWmH9s7l4lL4rU9oZZuxTpSiOSr/QwcaF09AISREd9K2Am3C6pZ/KbZ0HTQYPvjOEg9ve4P3PPw==", "license": "LGPL-3.0", "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-utils": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-utils/-/web3-utils-1.0.3.tgz", - "integrity": "sha512-ChCz/HUqUIP7XFivTIYpzZLqEow0FcIOGvZ/ayiyXLjneOdXhd2ylyqUy8eb/494FYDj7KujfPUPe3OUgt4gFQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-utils/-/web3-utils-2.0.0.tgz", + "integrity": "sha512-NFdUvaa6/rOUqUamrzx95Oph/1Xi7Zz0C9pIem3RKQBIBHORmqpl9sxxUgyjBoH4HMcAD/JungqxhFnEHT3WYQ==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/qrl-cryptography": "0.3.0", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/qrl-cryptography": "0.3.3", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-validator": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-validator/-/web3-validator-1.0.3.tgz", - "integrity": "sha512-O5VaGMf9z/Zy4kH9nqnwVcGoVnXiIXW81YzG9RUY0S9IURtp9+bdCiPiOo8KVJHUXpgubIvEWXeLLAqO6+kvjQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-validator/-/web3-validator-2.0.0.tgz", + "integrity": "sha512-cR3WE+hQrXmvHvNyzQiRyaL1dz5PJWDlbMl/qcHdw648r6lifhRBugJVzq/Z1ASA0R3DhPLIWiyyGJ2z1l65Bw==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/qrl-cryptography": "0.3.0", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "util": "0.12.5", - "zod": "3.22.3" + "@theqrl/qrl-cryptography": "0.3.3", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "zod": "4.6.7" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@types/node": { - "version": "26.5.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-26.5.1.tgz", - "integrity": "sha512-CzNm2FezW4VR/LjG6yUdiEgLE/rAQ9Slj5gCu/C2VrdcW7I0ahNZ8DRbHT7zOZ6r3ONgd/bsQIeSaoDGrd1C6g==", + "version": "26.6.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz", + "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==", "license": "MIT", "dependencies": { "undici-types": "~8.9.0" } }, "node_modules/@types/ws": { - "version": "8.18.1", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", - "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==", + "version": "8.18.2", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.2.tgz", + "integrity": "sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==", "license": "MIT", "dependencies": { "@types/node": "*" @@ -572,21 +508,6 @@ "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", "license": "MIT" }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "license": "MIT", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/balanced-match": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", @@ -681,24 +602,6 @@ "node": ">= 0.8" } }, - "node_modules/call-bind": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", - "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "get-intrinsic": "^1.3.0", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/call-bind-apply-helpers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", @@ -819,23 +722,6 @@ "ms": "2.0.0" } }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", @@ -1018,21 +904,6 @@ "node": ">= 0.8" } }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -1075,15 +946,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/generator-function": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", - "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/get-intrinsic": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", @@ -1156,18 +1018,6 @@ "node": ">=4" } }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/has-symbols": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", @@ -1180,21 +1030,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/hasown": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", @@ -1261,22 +1096,6 @@ "node": ">= 0.10" } }, - "node_modules/is-arguments": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", - "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", @@ -1290,18 +1109,6 @@ "node": ">=8" } }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -1312,25 +1119,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-generator-function": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", - "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "generator-function": "^2.0.0", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -1354,39 +1142,6 @@ "node": ">=0.12.0" } }, - "node_modules/is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/isomorphic-ws": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", @@ -1632,15 +1387,6 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/prom-client": { "version": "15.1.3", "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-15.1.3.tgz", @@ -1751,23 +1497,6 @@ ], "license": "MIT" }, - "node_modules/safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", @@ -1832,23 +1561,6 @@ "node": ">= 0.8.0" } }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", @@ -2050,19 +1762,6 @@ "node": ">= 0.8" } }, - "node_modules/util": { - "version": "0.12.5", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", - "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "which-typed-array": "^1.1.2" - } - }, "node_modules/utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", @@ -2097,31 +1796,10 @@ "webidl-conversions": "^3.0.0" } }, - "node_modules/which-typed-array": { - "version": "1.1.22", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.22.tgz", - "integrity": "sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw==", - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/ws": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", - "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.0.tgz", + "integrity": "sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==", "license": "MIT", "engines": { "node": ">=10.0.0" @@ -2140,9 +1818,9 @@ } }, "node_modules/zod": { - "version": "3.22.3", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.3.tgz", - "integrity": "sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug==", + "version": "4.6.7", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" diff --git a/monitoring/contract-exporter/package.json b/monitoring/contract-exporter/package.json index 94f7553..9e3e176 100644 --- a/monitoring/contract-exporter/package.json +++ b/monitoring/contract-exporter/package.json @@ -8,7 +8,7 @@ "dev": "nodemon src/index.js" }, "dependencies": { - "@theqrl/web3": "^1.0.3", + "@theqrl/web3": "^2.0.0", "prom-client": "^15.1.3", "express": "^4.22.3", "dotenv": "^17.4.2" diff --git a/package-lock.json b/package-lock.json index a1040f6..b414615 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@theqrl/mldsa87": "^2.2.0", "@theqrl/qrl-cryptography": "^0.3.3", "@theqrl/wallet.js": "^6.3.0", - "@theqrl/web3": "^1.0.3", + "@theqrl/web3": "^2.0.0", "dotenv": "^17.4.2" } }, @@ -24,9 +24,9 @@ "license": "MIT" }, "node_modules/@ethereumjs/rlp": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-10.1.1.tgz", - "integrity": "sha512-jbnWTEwcpoY+gE0r+wxfDG9zgiu54DcTcwnc9sX3DsqKR4l5K7x2V8mQL3Et6hURa4DuT9g7z6ukwpBLFchszg==", + "version": "10.1.3", + "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-10.1.3.tgz", + "integrity": "sha512-d795YWkN6O8EJh/PgJ2zZKCdBMl8OlqkuVQESoidH666gaFtUuJ01jDtiuqfyOqTNcTdGhHi8LkQv1WEZzvZZw==", "license": "MPL-2.0", "bin": { "rlp": "bin/rlp.cjs" @@ -129,27 +129,6 @@ "@ethersproject/logger": "^5.8.0" } }, - "node_modules/@ethersproject/strings": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.8.0.tgz", - "integrity": "sha512-qWEAk0MAvl0LszjdfnZ2uC8xbR2wdv4cDabyHiBh3Cldq/T8dPH3V4BbBsAYJUeonwD+8afVXld274Ls+Y1xXg==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/logger": "^5.8.0" - } - }, "node_modules/@noble/hashes": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.4.0.tgz", @@ -163,9 +142,9 @@ } }, "node_modules/@theqrl/abi": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/abi/-/abi-1.0.3.tgz", - "integrity": "sha512-Pd+1jtkSXVETIow3ZjKJhcMJswOfs0dyhJyys45PXNaVx0K3GzY27cVwuBe9EAD5di5eQ9uaVJZjbiZIRkg4IA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/abi/-/abi-2.0.0.tgz", + "integrity": "sha512-2G3Y5PmtPzhgM5IStp87nUxxNZjYSBEL6raobN/2hQCOhISIlw4QsoN/2eWsI45i3PGivrqjdGWW7dzYwWqG2Q==", "license": "MIT", "dependencies": { "@ethersproject/bignumber": "5.8.0", @@ -173,8 +152,8 @@ "@ethersproject/constants": "5.8.0", "@ethersproject/logger": "5.8.0", "@ethersproject/properties": "5.8.0", - "@ethersproject/strings": "5.8.0", - "@theqrl/web3-utils": "1.0.3" + "@theqrl/qrl-cryptography": "0.3.3", + "@theqrl/web3-utils": "^2.0.0" }, "engines": { "node": ">=20.19.0" @@ -219,143 +198,120 @@ } }, "node_modules/@theqrl/web3": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3/-/web3-1.0.3.tgz", - "integrity": "sha512-AO/BeNtU/l7//87xAFYtrM/GFdV99DwVqGSqTzw38+WQpplBr3dURmd/ixXVHMsYEuEy+ewCR1h/IqypKeR6Lg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3/-/web3-2.0.0.tgz", + "integrity": "sha512-OKl+rPVFpsOdnbJC88VkAn3q7cjZskB23iKym1IHl3NcXxjocZ93ElWB9gMOhk3W4PPqvB2V1X/y1AOfDph8WA==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-net": "1.0.3", - "@theqrl/web3-providers-http": "1.0.3", - "@theqrl/web3-providers-ws": "1.0.3", - "@theqrl/web3-qrl": "1.0.3", - "@theqrl/web3-qrl-abi": "1.0.3", - "@theqrl/web3-qrl-accounts": "1.0.3", - "@theqrl/web3-qrl-contract": "1.0.3", - "@theqrl/web3-qrl-iban": "1.0.3", - "@theqrl/web3-qrl-qrns": "1.0.3", - "@theqrl/web3-rpc-methods": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-net": "^2.0.0", + "@theqrl/web3-providers-http": "^2.0.0", + "@theqrl/web3-providers-ws": "^2.0.0", + "@theqrl/web3-qrl": "^2.0.0", + "@theqrl/web3-qrl-abi": "^2.0.0", + "@theqrl/web3-qrl-accounts": "^2.0.0", + "@theqrl/web3-qrl-contract": "^2.0.0", + "@theqrl/web3-qrl-qrns": "^2.0.0", + "@theqrl/web3-rpc-methods": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-core": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-core/-/web3-core-1.0.3.tgz", - "integrity": "sha512-s8PUFBBC/f/HxYUxKz6Xju38tfUZ3GBlzwPS5bdyxipwEzhgfh8BZgrROZ2ZrRL1HowZI7OblY7oN9FQw6EWLQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-core/-/web3-core-2.0.0.tgz", + "integrity": "sha512-o8UfaH09qdf5BU7SkYxt3Y+LeSatgO/Y2u4BnzQ+1yWWpycKgPqpXnGi597KPsQniPSbuJrZ8XrdJVP15eiZiw==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-providers-http": "1.0.3", - "@theqrl/web3-providers-ws": "1.0.3", - "@theqrl/web3-qrl-iban": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-providers-http": "^2.0.0", + "@theqrl/web3-providers-ws": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0" }, "engines": { "node": ">=20.19.0" - }, - "optionalDependencies": { - "@theqrl/web3-providers-ipc": "1.0.3" } }, "node_modules/@theqrl/web3-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@theqrl/web3-errors/-/web3-errors-1.0.2.tgz", - "integrity": "sha512-UwUPXAbA5+Z+OtKEknZJnCCssnohriycMuVaWnboBRQPLv4hHrFWnubOLJi6D3+xGlCk3TCbMlm2SiuZumbq8A==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-errors/-/web3-errors-2.0.0.tgz", + "integrity": "sha512-0KTuHm8iPgehN5Xy0V9qqLgCqYbBwrMdcUvu1hombuol8RXT6PZ50TtnI52IYKSyfrhRXpC0PXVUyE1PJb2siA==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-types": "1.0.2" + "@theqrl/web3-types": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-net": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-net/-/web3-net-1.0.3.tgz", - "integrity": "sha512-KRn3mBoRy45Kl9vgzTyeg0TWOxuiGmW2KQE5dI3fCyYfrnQroBNXiw7wlRwZM3DNofZFCzdt1CIbkOlE/iOnRA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-net/-/web3-net-2.0.0.tgz", + "integrity": "sha512-U8p0dhte4YRO7sOIcjeeull4cSbKRs/3/LBO+lUfIM3A+s4yvJTOd3aQ+qEitZd9ssFmqdA1h8zYyV5nTVMLWg==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-rpc-methods": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-rpc-methods": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-providers-http": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-http/-/web3-providers-http-1.0.3.tgz", - "integrity": "sha512-dFDqpOFft8vhxLZ9omZ8qDiLqkHcaKo0HvI8IX8lhFxuXsxRa28NracYn2MjxTR3p45oqrc9VbK3BJ2aHG5PxA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-http/-/web3-providers-http-2.0.0.tgz", + "integrity": "sha512-x02qv6ppJc21N18QQt7GhM38FeaDatO/o8lJ43enZM7/qteZfdvC0XOVcP4I94iAzPrLGrLzeLoJJ0tswHSBXw==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", "cross-fetch": "4.1.0" }, "engines": { "node": ">=20.19.0" } }, - "node_modules/@theqrl/web3-providers-ipc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-ipc/-/web3-providers-ipc-1.0.3.tgz", - "integrity": "sha512-ALqjX/8iB9SgAnCihZvOCjIS4efyEpthZ/72ZjOza4TX8HNx8n88vVXO9fBF0JOZSJDxq8EFcPyVqoa8HqKJmg==", - "license": "LGPL-3.0", - "optional": true, - "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3" - }, - "engines": { - "node": ">=20.19.0" - } - }, "node_modules/@theqrl/web3-providers-ws": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-ws/-/web3-providers-ws-1.0.3.tgz", - "integrity": "sha512-kFYTTbpuRZpRw+i/+EKHXHZgvj3xC64tQZjNeU+1+S3qW9rZNy5i8gJxZAPzOkRwMYncbS3wv5KRxkbDh/KEGw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-providers-ws/-/web3-providers-ws-2.0.0.tgz", + "integrity": "sha512-+I2ysv+owsJ6yuuujuD0T9EbU+H8wZ/3qxqhGkTe0lvV/53iPIllPFE8+mVmRQmMr9daLW2TCm/jnAS+0/Zczg==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@types/ws": "8.18.1", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@types/ws": "8.18.2", "isomorphic-ws": "5.0.0", - "ws": "8.21.0" + "ws": "8.22.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-qrl": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl/-/web3-qrl-1.0.3.tgz", - "integrity": "sha512-t1wG9jfrzKGIlPS7YDNiR/HzR52R5tpf/Q/+BEaO19rZFS0dD371Q2zmL43W/4qsfxiIXif9A6oD+nDqh54+oA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl/-/web3-qrl-2.0.0.tgz", + "integrity": "sha512-fT6pzz6XASTri1Gqv7rD6yMXjeeyXWT+Ag38O3775Bvcg+dRkLpnAlLhbIwK8vs5NA0Oa9vg8304yB/jUs2dJA==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/wallet.js": "6.2.3", - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-net": "1.0.3", - "@theqrl/web3-providers-ws": "1.0.3", - "@theqrl/web3-qrl-abi": "1.0.3", - "@theqrl/web3-qrl-accounts": "1.0.3", - "@theqrl/web3-rpc-methods": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3", + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-net": "^2.0.0", + "@theqrl/web3-qrl-abi": "^2.0.0", + "@theqrl/web3-qrl-accounts": "^2.0.0", + "@theqrl/web3-rpc-methods": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0", "setimmediate": "1.0.5" }, "engines": { @@ -363,38 +319,34 @@ } }, "node_modules/@theqrl/web3-qrl-abi": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-abi/-/web3-qrl-abi-1.0.3.tgz", - "integrity": "sha512-thtgZLMVnfoukBfp8/n8QP/DgIZJhfR4G3w0Wm2KHVP+l2zjylkjnup0ZKxjDcDKTHPr+8q+B+50OttHAt1v2w==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-abi/-/web3-qrl-abi-2.0.0.tgz", + "integrity": "sha512-0DF+4rmvuLKKNwHOk3XiXfFvd7yUzDuJX5+EPOfgjborZKayx/g92ZIvZ0ZF6R8qQKiQVIom79tI7p2JRDcZRQ==", "license": "LGPL-3.0", "dependencies": { - "@ethersproject/bignumber": "5.8.0", - "@theqrl/abi": "1.0.3", - "@theqrl/wallet.js": "6.2.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3", - "crc-32": "1.2.2" + "@theqrl/abi": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-qrl-accounts": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-accounts/-/web3-qrl-accounts-1.0.3.tgz", - "integrity": "sha512-LhnI2GKczPPImsdKDv8Cx0sQAMnBK89FrA9oIe2XB+rVizlzG5TRwNZbN+QuoKhhpkWzk3bKpb2UUXM/1Zm0rA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-accounts/-/web3-qrl-accounts-2.0.0.tgz", + "integrity": "sha512-MQU3OjBorl/yFwk6DKFSCdguvbJeRp5GSM8it9Sn/C6iVwCNevrK6yUC3QunG/+bosSpQerwMRiuhUe3+ak9QQ==", "license": "LGPL-3.0", "dependencies": { - "@ethereumjs/rlp": "10.1.1", - "@theqrl/mldsa87": "2.1.3", - "@theqrl/qrl-cryptography": "0.3.0", - "@theqrl/wallet.js": "6.2.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3", + "@ethereumjs/rlp": "10.1.3", + "@theqrl/mldsa87": "2.2.0", + "@theqrl/qrl-cryptography": "0.3.3", + "@theqrl/wallet.js": "6.3.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0", "crc-32": "1.2.2" }, "engines": { @@ -402,198 +354,120 @@ } }, "node_modules/@theqrl/web3-qrl-contract": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-contract/-/web3-qrl-contract-1.0.3.tgz", - "integrity": "sha512-iLH1PbWQpPuMaDKVYhc0Bmu47C+T2TFkolsuTaIhwNy98a0gMq/qUfeIZpMADVH/O+IkYxTpZ349u0KiMiqjMA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-contract/-/web3-qrl-contract-2.0.0.tgz", + "integrity": "sha512-z+LBwQZEiB+tMiF+kd+OEKefStZqrnLFdIgb5iyocuEcUF0FRdV7qX+im+fA4fsiCgzVxNdvhSEyZrrTTDptvA==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-qrl": "1.0.3", - "@theqrl/web3-qrl-abi": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" - }, - "engines": { - "node": ">=20.19.0" - } - }, - "node_modules/@theqrl/web3-qrl-iban": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-iban/-/web3-qrl-iban-1.0.3.tgz", - "integrity": "sha512-WstKSRoGHnoSifHxmQQXPAmTqN94mWSdEX9VRPtNyKOMRiMAGGn+vYzvCnyKzCdGUYQLJilj2VxlU1J5F/Qdpw==", - "license": "LGPL-3.0", - "dependencies": { - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-qrl": "^2.0.0", + "@theqrl/web3-qrl-abi": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-qrl-qrns": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-qrns/-/web3-qrl-qrns-1.0.3.tgz", - "integrity": "sha512-ROe9CzPKxgywfqYbv7BdMvtHCUyqJyx/+BEQBkTNFw5M8GAt/mxRro5DoGP7jgngevQ7pw47RQUEKbGKscUyfQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-qrl-qrns/-/web3-qrl-qrns-2.0.0.tgz", + "integrity": "sha512-ULMR0i1mwNNwKNgniDM0HTwMxJv1QiBpTvz/fhyihz27+gRZVDBoZa22tHhvioPe1aj4kPYOj3oL7DoNDkdx1Q==", "license": "LGPL-3.0", "dependencies": { "@adraffy/ens-normalize": "1.11.1", - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-net": "1.0.3", - "@theqrl/web3-qrl": "1.0.3", - "@theqrl/web3-qrl-contract": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-utils": "1.0.3", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-net": "^2.0.0", + "@theqrl/web3-qrl": "^2.0.0", + "@theqrl/web3-qrl-contract": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-utils": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-rpc-methods": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-rpc-methods/-/web3-rpc-methods-1.0.3.tgz", - "integrity": "sha512-1vmo0Vko7oh5V52kc9tUKOxxmvFFdavoEcdEBrQyLQAMzLRNPGHHRjO9d7kMGOgJPiYzGduGYae29SKn2JIRpg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-rpc-methods/-/web3-rpc-methods-2.0.0.tgz", + "integrity": "sha512-B2k40W4VRTzUy8jWIpBJ3Zy1JKp78SDu+FBC7EP0TXfyPrlE/YIfvXMRmLbdW2tGox0FC4Zy9TGTv+JCQTMAYg==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/web3-core": "1.0.3", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/web3-core": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-types": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@theqrl/web3-types/-/web3-types-1.0.2.tgz", - "integrity": "sha512-Coz6+BuNPbgR34hbVwxnLEETvD3PSYCRQKQ4kolIPDczk8mDEYIwa7TyCegRcklbrH9Hc765l4BMsDZI0QsmDQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-types/-/web3-types-2.0.0.tgz", + "integrity": "sha512-C4tn4RnETwfTWmH9s7l4lL4rU9oZZuxTpSiOSr/QwcaF09AISREd9K2Am3C6pZ/KbZ0HTQYPvjOEg9ve4P3PPw==", "license": "LGPL-3.0", "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-utils": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-utils/-/web3-utils-1.0.3.tgz", - "integrity": "sha512-ChCz/HUqUIP7XFivTIYpzZLqEow0FcIOGvZ/ayiyXLjneOdXhd2ylyqUy8eb/494FYDj7KujfPUPe3OUgt4gFQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-utils/-/web3-utils-2.0.0.tgz", + "integrity": "sha512-NFdUvaa6/rOUqUamrzx95Oph/1Xi7Zz0C9pIem3RKQBIBHORmqpl9sxxUgyjBoH4HMcAD/JungqxhFnEHT3WYQ==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/qrl-cryptography": "0.3.0", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "@theqrl/web3-validator": "1.0.3" + "@theqrl/qrl-cryptography": "0.3.3", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "@theqrl/web3-validator": "^2.0.0" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@theqrl/web3-validator": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@theqrl/web3-validator/-/web3-validator-1.0.3.tgz", - "integrity": "sha512-O5VaGMf9z/Zy4kH9nqnwVcGoVnXiIXW81YzG9RUY0S9IURtp9+bdCiPiOo8KVJHUXpgubIvEWXeLLAqO6+kvjQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@theqrl/web3-validator/-/web3-validator-2.0.0.tgz", + "integrity": "sha512-cR3WE+hQrXmvHvNyzQiRyaL1dz5PJWDlbMl/qcHdw648r6lifhRBugJVzq/Z1ASA0R3DhPLIWiyyGJ2z1l65Bw==", "license": "LGPL-3.0", "dependencies": { - "@theqrl/qrl-cryptography": "0.3.0", - "@theqrl/web3-errors": "1.0.2", - "@theqrl/web3-types": "1.0.2", - "util": "0.12.5", - "zod": "3.22.3" + "@theqrl/qrl-cryptography": "0.3.3", + "@theqrl/web3-errors": "^2.0.0", + "@theqrl/web3-types": "^2.0.0", + "zod": "4.6.7" }, "engines": { "node": ">=20.19.0" } }, "node_modules/@types/node": { - "version": "26.4.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-26.4.0.tgz", - "integrity": "sha512-faiGnoIrLH/V8cibOMEAZ8pMw6oXqSukl29ra4mN8GdaB2ZewzeaLj+INpV5N+Z1eKWzY+IzaIZH2EIR6YZRNQ==", + "version": "26.6.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz", + "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==", "license": "MIT", "dependencies": { - "undici-types": "~8.3.0" + "undici-types": "~8.9.0" } }, "node_modules/@types/ws": { - "version": "8.18.1", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", - "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==", + "version": "8.18.2", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.2.tgz", + "integrity": "sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==", "license": "MIT", "dependencies": { "@types/node": "*" } }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "license": "MIT", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/bn.js": { "version": "5.2.5", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.5.tgz", "integrity": "sha512-Vq886eXykuP5E6HcKSSStP3bJgrE6In5WKxVUvJ8XGpWWYs2xZHWqUwzCtGgEtBcxyd57KBFDPFoUfNzdaHCNg==", "license": "MIT" }, - "node_modules/call-bind": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", - "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "get-intrinsic": "^1.3.0", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/crc-32": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", @@ -615,23 +489,6 @@ "node-fetch": "^2.7.0" } }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/dotenv": { "version": "17.4.2", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz", @@ -644,269 +501,6 @@ "url": "https://dotenvx.com" } }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", - "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/generator-function": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", - "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", - "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" - }, - "node_modules/is-arguments": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", - "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-generator-function": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", - "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "generator-function": "^2.0.0", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/isomorphic-ws": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-5.0.0.tgz", @@ -916,15 +510,6 @@ "ws": "*" } }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/node-fetch": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", @@ -945,49 +530,6 @@ } } }, - "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", @@ -1001,24 +543,11 @@ "license": "MIT" }, "node_modules/undici-types": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz", - "integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz", + "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==", "license": "MIT" }, - "node_modules/util": { - "version": "0.12.5", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", - "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "which-typed-array": "^1.1.2" - } - }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -1035,31 +564,10 @@ "webidl-conversions": "^3.0.0" } }, - "node_modules/which-typed-array": { - "version": "1.1.22", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.22.tgz", - "integrity": "sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw==", - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/ws": { - "version": "8.21.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz", - "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==", + "version": "8.22.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.1.tgz", + "integrity": "sha512-oyL6OPYme/CmiFvNuGzeoxCJ4nOrZE2O1FwM9MWM1AsGri6nLXB2pg+lNA8aLeXMSav0J6eIVS1j6vUPzUtK9g==", "license": "MIT", "engines": { "node": ">=10.0.0" @@ -1078,9 +586,9 @@ } }, "node_modules/zod": { - "version": "3.22.3", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.3.tgz", - "integrity": "sha512-EjIevzuJRiRPbVH4mGc8nApb/lVLKVpmUhAaR5R5doKGfAnGJ6Gr3CViAVjP+4FWSxCsybeWQdcgCtbX+7oZug==", + "version": "4.6.7", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" diff --git a/package.json b/package.json index bd3629b..a880ab6 100644 --- a/package.json +++ b/package.json @@ -25,13 +25,10 @@ "@theqrl/mldsa87": "^2.2.0", "@theqrl/qrl-cryptography": "^0.3.3", "@theqrl/wallet.js": "^6.3.0", - "@theqrl/web3": "^1.0.3", + "@theqrl/web3": "^2.0.0", "dotenv": "^17.4.2" }, "overrides": { - "@theqrl/mldsa87": "$@theqrl/mldsa87", - "@theqrl/qrl-cryptography": "$@theqrl/qrl-cryptography", - "@theqrl/wallet.js": "$@theqrl/wallet.js", "tmp": "^0.2.7", "follow-redirects": "^1.16.0", "ws": "^8.21.0" diff --git a/scripts/loadDeployer.test.js b/scripts/loadDeployer.test.js index 0c4cab2..49ae02f 100644 --- a/scripts/loadDeployer.test.js +++ b/scripts/loadDeployer.test.js @@ -37,6 +37,23 @@ test('loads a 51-byte extended seed into both QRL wallet registries', () => { ]); }); +test('hands the installed QRL web3 client a 0x seed for every accepted spelling', () => { + // @theqrl/web3 2.0.0 refuses a seed without a lowercase 0x prefix + // (InvalidSeedError); 1.0.3 accepted the bare hex. loadDeployer accepts the + // bare, 0x and 0X spellings and must keep giving web3 the 0x form. + const { InvalidSeedError, Web3 } = require('@theqrl/web3'); + const expected = new Web3().qrl.accounts.create(); + const bare = expected.seed.slice(2); + assert.throws(() => new Web3().qrl.accounts.seedToAccount(bare), InvalidSeedError); + for (const secret of [bare, `0X${bare}`, ` ${expected.seed}\n`]) { + const web3 = new Web3(); + const account = loadDeployer(web3, secret); + assert.equal(account.seed, expected.seed); + assert.equal(account.address, expected.address); + assert.equal(web3.qrl.wallet.get(account.address)?.address, expected.address); + } +}); + test('parses only full QIP-55 public development account fixtures', () => { const seed = 'cd'.repeat(51); const valid = `new_prefunded_account("Q${'12'.repeat(64)}", "${seed}")`; diff --git a/scripts/native-monitoring.test.js b/scripts/native-monitoring.test.js index 9a0e9ac..3e959c7 100644 --- a/scripts/native-monitoring.test.js +++ b/scripts/native-monitoring.test.js @@ -49,3 +49,80 @@ test('native monitoring has read-only contract interfaces and samples one block' web3.qrl.getChainId = async () => 1n; await assert.rejects(monitor.start(), /Wrong monitoring chain/); }); + +// Driven through the installed @theqrl/web3 client and a local JSON-RPC +// endpoint, because the reply checks and the decoding are the library's. +// Since 2.0.0 the client refuses a reply whose id differs from the request, +// decodes addresses as checksummed Q addresses, and decodes each word +// strictly. The exporter's binding to the pool's finality and portfolio +// contracts goes through those decoded addresses. +test('native monitoring scrapes one block through the installed QRL web3 client', async () => { + const http = require('node:http'); + const { Web3 } = require('@theqrl/web3'); + const coder = new Web3().qrl.abi; + const finalityAddress = `Q${'ab'.repeat(64)}`; + const portfolioAddress = `Q${'cd'.repeat(32)}${'12'.repeat(32)}`; + const outputs = { + [poolAddress]: { pendingTotal: 42000n * 10n ** 18n, recovering: true, poolStatus: 2n, + poolRecoveryDeadlineSlot: 5000n, finality: finalityAddress, portfolio: portfolioAddress, + fundingGate: poolAddress }, + [finalityAddress]: { status: 1n, finalizedSlot: 777n, trustDeadlineSlot: 888n }, + [portfolioAddress]: { registryCount: 3n } + }; + const methods = new Map([...POOL_ABI, ...FINALITY_ABI, ...PORTFOLIO_ABI].map(method => [ + coder.encodeFunctionSignature(`${method.name}()`), method])); + let chainId = 3151916n; + const calls = []; + const answer = ({ method, params }) => { + if (method === 'qrl_chainId') return `0x${chainId.toString(16)}`; + if (method === 'qrl_getCode') return '0x1234'; + if (method === 'qrl_blockNumber') return '0x63'; + assert.equal(method, 'qrl_call'); + const [{ to, data, input }, block] = params; + const abi = methods.get(String(data ?? input).slice(0, 10)); + assert(abi, 'The exporter calls only its declared views'); + const contract = Object.keys(outputs).find(address => address.toLowerCase() === to.toLowerCase()); + assert(contract, `Unexpected call target ${to}`); + calls.push({ name: abi.name, contract, block }); + return coder.encodeParameter(abi.outputs[0].type, outputs[contract][abi.name] ?? 0n); + }; + const server = http.createServer((request, response) => { + let body = ''; + request.setEncoding('utf8'); + request.on('data', chunk => { body += chunk; }); + request.on('end', () => { + const parsed = JSON.parse(body); + const reply = one => ({ jsonrpc: '2.0', id: one.id, result: answer(one) }); + response.writeHead(200, { 'content-type': 'application/json' }); + response.end(JSON.stringify(Array.isArray(parsed) ? parsed.map(reply) : reply(parsed))); + }); + }); + await new Promise(resolve => server.listen(0, '127.0.0.1', resolve)); + const measured = {}; + const metrics = { qrlFields: new Set(['pendingTotal']) }; + for (const name of ['pendingTotal', 'recovering', 'poolStatus', 'poolRecoveryDeadlineSlot', 'finalityStatus', + 'finalizedSlot', 'trustDeadlineSlot', 'validatorCount', 'executionBlock', 'lastSuccess', 'scrapeSuccess']) { + metrics[name] = { set: value => { measured[name] = value; } }; + } + const config = loadConfig({ ...fixture(), QRL_RPC_URL: `http://127.0.0.1:${server.address().port}` }); + const monitor = new ContractMonitor(new Web3(config.rpcUrl), metrics, config); + try { + await monitor.start(); + monitor.stop(); + assert.deepEqual(measured, { ...measured, pendingTotal: 42000, recovering: 1, poolStatus: 2, + poolRecoveryDeadlineSlot: 5000, finalityStatus: 1, finalizedSlot: 777, trustDeadlineSlot: 888, + validatorCount: 3, executionBlock: 99, scrapeSuccess: 1 }); + assert.equal(calls.length, POOL_ABI.length + 4); + assert(calls.every(call => call.block === '0x63')); + for (const name of ['status', 'finalizedSlot', 'trustDeadlineSlot']) { + assert.equal(calls.find(call => call.name === name).contract, finalityAddress); + } + assert.equal(calls.find(call => call.name === 'registryCount').contract, portfolioAddress); + chainId = 1n; + await assert.rejects(monitor.start(), /Wrong monitoring chain/); + } finally { + monitor.stop(); + server.closeAllConnections(); + await new Promise(resolve => server.close(resolve)); + } +}); From 180efe95f16710cc30edeff2df2c84587c7157a8 Mon Sep 17 00:00:00 2001 From: moscowchill <72578879+moscowchill@users.noreply.github.com> Date: Wed, 4 Nov 2026 09:40:57 +0100 Subject: [PATCH 3/3] ci: test each change once, on its pull request (#63) Every commit on a branch with an open pull request ran twice, once for the push and once for the pull request: 26 of the last 40 runs were pushes. - Pull requests into dev and main run the suite, plus a weekly run on dev and manual dispatch. - Job timeout, superseded pull request runs cancelled, actions pinned by commit at current majors. --- .github/workflows/test.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 510d544..8e17378 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,23 +2,39 @@ name: CI permissions: {} +# Each change is tested once, on its pull request. Pushes to a branch with an open +# pull request used to run everything twice. The weekly run surfaces drift in the +# registry. on: - push: pull_request: + branches: [dev, main] + schedule: + - cron: '0 3 * * 1' workflow_dispatch: +# The weekly run tests dev, where changes land first. Scheduled runs read this +# file from main. +env: + TEST_REF: ${{ github.event_name == 'schedule' && 'dev' || '' }} + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: javascript: name: Contract tooling and frontend runs-on: ubuntu-latest + timeout-minutes: 8 permissions: contents: read steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: + ref: ${{ env.TEST_REF }} persist-credentials: false - - uses: actions/setup-node@v4 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 22.22.x cache: npm