Vitest browser cleanup #3344#110
Conversation
* EVM README updates * VM README updates * Minor update * More README doc updates * Update packages/evm/README.md * Update packages/vm/README.md --------- Co-authored-by: Gabriel Rocheleau <contact@rockwaterweb.com>
* monorepo: clean up more test data * chore: linting * vm: fix example
* chore: revert startsWith0x * util: fix hexToBytes in usage * util: remoe redundant byte checking * chore: more type adjustments * format: linting * monorepo: more type issues * util: undo remove undefined * chore: more type fixes * client: remove typecasting * client: simplify typecasting * common: remove typecasting * chore: remove unused import * chore: address review comments * chore: remove unused var * chore: strictEqual
* evm/vm: use constant as string to ref for `EVMError` * Remove unused EOFError key-values * Remove unused SimpleErrors * Remove unused EVMErrorMessages elements * Rename EvmErrorResult to EVMErrorResult * Rename Evm to EVM in comments and strings * Make EVMErrorMessages a static field in EVMError --------- Co-authored-by: Amir <indigophi@protonmail.com>
* util: document and remove undefined handling from bytesToHex * util: remove typecasting * util: refactor account handling * chore: simplify handling * util: deprecate account constructor and update docs * vm: fix event test * client: fix client tests * lint: remove console olgs * client: fix more client tests * lint: remove empty block * client: remove unnecessary optional chaining * client: remove it.only
…mjs#4008) * feat(block): add CLRequests test, example, and documentation * fix(block): update CLRequests examples to use bytesToHex * chore: specify Node.js 20 in .nvmrc
* util: replace some toBytes usage * client: more hexToBytes * chore: remove more toBytes * chore: remove toBytes usage * lint: remove unused imports * chore: remove unused import * chore: remove unused import
* A somewhat more useful EVM EIP activation example (now with 7702 being active by default) * Same for VM * Add prominent v10 README header additions * Add README ToC, eventually restructure (binarytree) * Add README ToC, eventually restructure (block) * Add README ToC, eventually restructure (blockchain) * Add README ToC, eventually restructure (common) * Add README ToC, eventually restructure (devp2p) * Add README ToC, eventually restructure (era) * Add README ToC, eventually restructure (ethash) * Some EVM README section reordering * Add README ToC, eventually restructure (EVM) * Add README ToC, eventually restructure (genesis) * Add README ToC, eventually restructure (mpt) * Add README ToC, eventually restructure (rlp) * Add README ToC, eventually restructure (statemanager) * Add README ToC, eventually restructure (tx) * Add sub-ToC for tx types * Add README ToC, eventually restructure (util) * Add README ToC, eventually restructure (verkle) * Add README ToC, eventually restructure (vm) * Add README ToC, eventually restructure (wallet) * Undo robot nonsense
* Doc Updates: Yet another round (EVM / VM / Other) (ethereumjs#3999) * EVM README updates * VM README updates * Minor update * More README doc updates * Update packages/evm/README.md * Update packages/vm/README.md --------- Co-authored-by: Gabriel Rocheleau <contact@rockwaterweb.com> * monorepo: clean up more test data (ethereumjs#4001) * monorepo: clean up more test data * chore: linting * vm: fix example * util: prefixed hex string type improvements (ethereumjs#3995) * chore: revert startsWith0x * util: fix hexToBytes in usage * util: remoe redundant byte checking * chore: more type adjustments * format: linting * monorepo: more type issues * util: undo remove undefined * chore: more type fixes * client: remove typecasting * client: simplify typecasting * common: remove typecasting * chore: remove unused import * chore: address review comments * chore: remove unused var * chore: strictEqual * monorepo: npm audit fix (ethereumjs#4003) * EVM: cleanup error messages and fix styling (ethereumjs#3994) * evm/vm: use constant as string to ref for `EVMError` * Remove unused EOFError key-values * Remove unused SimpleErrors * Remove unused EVMErrorMessages elements * Rename EvmErrorResult to EVMErrorResult * Rename Evm to EVM in comments and strings * Make EVMErrorMessages a static field in EVMError --------- Co-authored-by: Amir <indigophi@protonmail.com> * fix: ethash test script (ethereumjs#4007) * util: remove undefined handling from bytesToHex (ethereumjs#4004) * util: document and remove undefined handling from bytesToHex * util: remove typecasting * util: refactor account handling * chore: simplify handling * util: deprecate account constructor and update docs * vm: fix event test * client: fix client tests * lint: remove console olgs * client: fix more client tests * lint: remove empty block * client: remove unnecessary optional chaining * client: remove it.only * feat(block): Add CLRequests test, example, and documentation (ethereumjs#4008) * feat(block): add CLRequests test, example, and documentation * fix(block): update CLRequests examples to use bytesToHex * chore: specify Node.js 20 in .nvmrc * util: replace unnecessary toBytes usage (ethereumjs#4014) * util: replace some toBytes usage * client: more hexToBytes * chore: remove more toBytes * chore: remove toBytes usage * lint: remove unused imports * chore: remove unused import * chore: remove unused import * Docs Cleanup / Cautious Restructuring / README ToCs (ethereumjs#4010) * A somewhat more useful EVM EIP activation example (now with 7702 being active by default) * Same for VM * Add prominent v10 README header additions * Add README ToC, eventually restructure (binarytree) * Add README ToC, eventually restructure (block) * Add README ToC, eventually restructure (blockchain) * Add README ToC, eventually restructure (common) * Add README ToC, eventually restructure (devp2p) * Add README ToC, eventually restructure (era) * Add README ToC, eventually restructure (ethash) * Some EVM README section reordering * Add README ToC, eventually restructure (EVM) * Add README ToC, eventually restructure (genesis) * Add README ToC, eventually restructure (mpt) * Add README ToC, eventually restructure (rlp) * Add README ToC, eventually restructure (statemanager) * Add README ToC, eventually restructure (tx) * Add sub-ToC for tx types * Add README ToC, eventually restructure (util) * Add README ToC, eventually restructure (verkle) * Add README ToC, eventually restructure (vm) * Add README ToC, eventually restructure (wallet) * Undo robot nonsense * evm: upgrade noble curves to 1.9.0 (ethereumjs#4018) --------- Co-authored-by: Holger Drewes <Holger.Drewes@gmail.com> Co-authored-by: Gabriel Rocheleau <contact@rockwaterweb.com> Co-authored-by: Jochem Brouwer <jochembrouwer96@gmail.com> Co-authored-by: Amir <indigophi@protonmail.com> Co-authored-by: avdhesh.eth <49278246+avdheshcharjan@users.noreply.github.com>
Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
* vm/eip6110: log layout check * vm: eip6110 update deposits layout verifier
This reverts commit 20cae2b.
* Revert "monorepo: npm audit fix (ethereumjs#4003)" (#91) This reverts commit 20cae2b. * Update docker-image.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> * Update docker-image.yml Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> --------- Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com>
…04-20-npm-audit Revert 4003 monorepo/fix 2025 04 20 npm audit
* Doc Updates: Yet another round (EVM / VM / Other) (ethereumjs#3999) * EVM README updates * VM README updates * Minor update * More README doc updates * Update packages/evm/README.md * Update packages/vm/README.md --------- * monorepo: clean up more test data (ethereumjs#4001) * monorepo: clean up more test data * chore: linting * vm: fix example * util: prefixed hex string type improvements (ethereumjs#3995) * chore: revert startsWith0x * util: fix hexToBytes in usage * util: remoe redundant byte checking * chore: more type adjustments * format: linting * monorepo: more type issues * util: undo remove undefined * chore: more type fixes * client: remove typecasting * client: simplify typecasting * common: remove typecasting * chore: remove unused import * chore: address review comments * chore: remove unused var * chore: strictEqual * monorepo: npm audit fix (ethereumjs#4003) * EVM: cleanup error messages and fix styling (ethereumjs#3994) * evm/vm: use constant as string to ref for `EVMError` * Remove unused EOFError key-values * Remove unused SimpleErrors * Remove unused EVMErrorMessages elements * Rename EvmErrorResult to EVMErrorResult * Rename Evm to EVM in comments and strings * Make EVMErrorMessages a static field in EVMError --------- * fix: ethash test script (ethereumjs#4007) * util: remove undefined handling from bytesToHex (ethereumjs#4004) * util: document and remove undefined handling from bytesToHex * util: remove typecasting * util: refactor account handling * chore: simplify handling * util: deprecate account constructor and update docs * vm: fix event test * client: fix client tests * lint: remove console olgs * client: fix more client tests * lint: remove empty block * client: remove unnecessary optional chaining * client: remove it.only * feat(block): Add CLRequests test, example, and documentation (ethereumjs#4008) * feat(block): add CLRequests test, example, and documentation * fix(block): update CLRequests examples to use bytesToHex * chore: specify Node.js 20 in .nvmrc * util: replace unnecessary toBytes usage (ethereumjs#4014) * util: replace some toBytes usage * client: more hexToBytes * chore: remove more toBytes * chore: remove toBytes usage * lint: remove unused imports * chore: remove unused import * chore: remove unused import * Docs Cleanup / Cautious Restructuring / README ToCs (ethereumjs#4010) * A somewhat more useful EVM EIP activation example (now with 7702 being active by default) * Same for VM * Add prominent v10 README header additions * Add README ToC, eventually restructure (binarytree) * Add README ToC, eventually restructure (block) * Add README ToC, eventually restructure (blockchain) * Add README ToC, eventually restructure (common) * Add README ToC, eventually restructure (devp2p) * Add README ToC, eventually restructure (era) * Add README ToC, eventually restructure (ethash) * Some EVM README section reordering * Add README ToC, eventually restructure (EVM) * Add README ToC, eventually restructure (genesis) * Add README ToC, eventually restructure (mpt) * Add README ToC, eventually restructure (rlp) * Add README ToC, eventually restructure (statemanager) * Add README ToC, eventually restructure (tx) * Add sub-ToC for tx types * Add README ToC, eventually restructure (util) * Add README ToC, eventually restructure (verkle) * Add README ToC, eventually restructure (vm) * Add README ToC, eventually restructure (wallet) * Undo robot nonsense * evm: upgrade noble curves to 1.9.0 (ethereumjs#4018) * compare merged base forks. (#87) * Doc Updates: Yet another round (EVM / VM / Other) (ethereumjs#3999) * EVM README updates * VM README updates * Minor update * More README doc updates * Update packages/evm/README.md * Update packages/vm/README.md --------- * monorepo: clean up more test data (ethereumjs#4001) * monorepo: clean up more test data * chore: linting * vm: fix example * util: prefixed hex string type improvements (ethereumjs#3995) * chore: revert startsWith0x * util: fix hexToBytes in usage * util: remoe redundant byte checking * chore: more type adjustments * format: linting * monorepo: more type issues * util: undo remove undefined * chore: more type fixes * client: remove typecasting * client: simplify typecasting * common: remove typecasting * chore: remove unused import * chore: address review comments * chore: remove unused var * chore: strictEqual * monorepo: npm audit fix (ethereumjs#4003) * EVM: cleanup error messages and fix styling (ethereumjs#3994) * evm/vm: use constant as string to ref for `EVMError` * Remove unused EOFError key-values * Remove unused SimpleErrors * Remove unused EVMErrorMessages elements * Rename EvmErrorResult to EVMErrorResult * Rename Evm to EVM in comments and strings * Make EVMErrorMessages a static field in EVMError --------- * fix: ethash test script (ethereumjs#4007) * util: remove undefined handling from bytesToHex (ethereumjs#4004) * util: document and remove undefined handling from bytesToHex * util: remove typecasting * util: refactor account handling * chore: simplify handling * util: deprecate account constructor and update docs * vm: fix event test * client: fix client tests * lint: remove console olgs * client: fix more client tests * lint: remove empty block * client: remove unnecessary optional chaining * client: remove it.only * feat(block): Add CLRequests test, example, and documentation (ethereumjs#4008) * feat(block): add CLRequests test, example, and documentation * fix(block): update CLRequests examples to use bytesToHex * chore: specify Node.js 20 in .nvmrc * util: replace unnecessary toBytes usage (ethereumjs#4014) * util: replace some toBytes usage * client: more hexToBytes * chore: remove more toBytes * chore: remove toBytes usage * lint: remove unused imports * chore: remove unused import * chore: remove unused import * Docs Cleanup / Cautious Restructuring / README ToCs (ethereumjs#4010) * A somewhat more useful EVM EIP activation example (now with 7702 being active by default) * Same for VM * Add prominent v10 README header additions * Add README ToC, eventually restructure (binarytree) * Add README ToC, eventually restructure (block) * Add README ToC, eventually restructure (blockchain) * Add README ToC, eventually restructure (common) * Add README ToC, eventually restructure (devp2p) * Add README ToC, eventually restructure (era) * Add README ToC, eventually restructure (ethash) * Some EVM README section reordering * Add README ToC, eventually restructure (EVM) * Add README ToC, eventually restructure (genesis) * Add README ToC, eventually restructure (mpt) * Add README ToC, eventually restructure (rlp) * Add README ToC, eventually restructure (statemanager) * Add README ToC, eventually restructure (tx) * Add sub-ToC for tx types * Add README ToC, eventually restructure (util) * Add README ToC, eventually restructure (verkle) * Add README ToC, eventually restructure (vm) * Add README ToC, eventually restructure (wallet) * Undo robot nonsense * evm: upgrade noble curves to 1.9.0 (ethereumjs#4018) --------- * Create jekyll-gh-pages.yml (#88) * vm/eip6110: log layout check (ethereumjs#3977) * vm/eip6110: log layout check * vm: eip6110 update deposits layout verifier * update sm API to match interface (ethereumjs#4022) * Revert "Create google.yml (#52)" (#90) This reverts commit e5e7104. * Revert "monorepo: npm audit fix (ethereumjs#4003)" This reverts commit 20cae2b. * 92 eployment failed with the following error (#101) * Revert "monorepo: npm audit fix (ethereumjs#4003)" (#91) This reverts commit 20cae2b. * Update docker-image.yml * Update docker-image.yml --------- --------- Signed-off-by: AU_gdev_19 <64915515+Dargon789@users.noreply.github.com> Co-authored-by: Holger Drewes <Holger.Drewes@gmail.com> Co-authored-by: Gabriel Rocheleau <contact@rockwaterweb.com> Co-authored-by: Jochem Brouwer <jochembrouwer96@gmail.com> Co-authored-by: Amir <indigophi@protonmail.com> Co-authored-by: avdhesh.eth <49278246+avdheshcharjan@users.noreply.github.com> Co-authored-by: acolytec3 <17355484+acolytec3@users.noreply.github.com>
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
|
Reviewer's Guide by SourceryThe pull request includes extensive updates to the README files across multiple EthereumJS packages, focusing on improving clarity, reorganizing content, updating examples, and bumping versions to v10. In parallel, the codebase sees significant changes aimed at improving type safety and consistency, standardizing error handling within the EVM, and general code cleanup and refactoring. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) |
There was a problem hiding this comment.
Hey @Dargon789 - I've reviewed your changes - here's some feedback:
Overall Comments:
- The PR title doesn't reflect the extensive scope of changes beyond browser testing cleanup.
- Ensure formatting and detail level are consistent across all updated README files.
- Consider splitting large refactorings like this into smaller, more focused PRs for easier review.
Here's what I looked at during the review
- 🟡 General issues: 4 issues found
- 🟢 Security: all looks good
- 🟡 Testing: 2 issues found
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Summary by Sourcery
Refactor and clean up code across multiple packages, update documentation, and adjust CI workflows.
Enhancements:
toBytesutility function with specific converters likehexToBytesandintToBytes.EVMError.errorMessagesinstead of direct string literals.CI:
Documentation:
Tests:
Chores:
.nvmrc).@noble/curvesdependency.