Update dependency @ethereumjs/common to v4 #330
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.2.0
->4.3.0
Release Notes
ethereumjs/ethereumjs-monorepo (@ethereumjs/common)
v4.3.0
: @ethereumjs/common v4.3.0Compare Source
Full 4844 Browser Readiness
WASM KZG
Shortly following the "Dencun Hardfork Support" release round from last month, this is now the first round of releases where the EthereumJS libraries are now fully browser compatible regarding the new 4844 functionality, see PRs #3294 and #3296! 🎉
Our WASM wizard @acolytec3 has spent the last two weeks and created a WASM build of the c-kzg library which we have released under the
kzg-wasm
name on npm (and you can also use independently for other projects). See the newly created GitHub repository for some library-specific documentation.This WASM KZG library can now be used for KZG initialization (replacing the old recommended
c-kzg
initialization), see the respective README section from the tx library for usage instructions (which is also accurate for the other using upstream libraries like block or EVM).Note that
kzg-wasm
needs to be added manually to your own dependencies and the KZG initialization code needs to be adopted like the following (which you will likely want to do in most cases, so if you deal with post Dencun EVM bytecode and/or 4844 blob txs in any way):Manual addition is necessary because we did not want to bundle our libraries with WASM code by default, since some projects are then prevented from using our libraries.
Note that passing in the KZG setup file is not necessary anymore, since this is now defaulting to the setup file from the official KZG ceremony (which is now bundled with the KZG library).
Trie Node.js Import Bug
Since this fits well also to be placed here relatively prominently for awareness: we had a relatively nasty bug in the
@ethereumjs/trie
library with aNode.js
web stream import also affecting browser compatibility, see PR #3280. This bug has been fixed along with these releases and this library now references the updated trie library version.Other Changes
v4.2.0
: @ethereumjs/tx v4.2.0Compare Source
This release is part of a final planned release round for the current major EthereumJS release versions, with next major versions planned to be released in July 2023.
It mainly removes all non-final EIP-4844, KZG and SSZ code from the libraries (mainly block, tx, util, evm, vm, blockchain) - see PR #2721 - to allow for a clean slate for the current major versions to transition to maintenance mode. In particular the
@chainsafe/ssz
dependency is removed from the@ethereumjs/util
library, which is a dependency of all other upstream EthereumJS libraries and removal therefore makes the whole stack lighter again.If you are interested in continuously following EIP-4844 work have a look at and follow our upcoming breaking releases where major changes will be integrated with 4844 nearing a final state.
Other Changes:
v4.1.0
: @ethereumjs/common v4.1.0Compare Source
Holesky Testnet Support
This release comes with full support for the Holesky public Ethereum testnet replacing the
Goerli
test network.EIP-7516 BLOBBASEFEE Opcode
This release supports EIP-7516 with a new
BLOBBASEFEE
opcode added to and scheduled for the Dencun HF, see PR #3035 and #3068. The opcode returns the value of the blob base-fee of the current block it is executing in.Dencun devnet-11 Compatibility
This release contains various fixes and spec updates related to the Dencun (Deneb/Cancun) HF and is now compatible with the specs as used in devnet-11 (October 2023).
EIP-4788
: do not use precompile anymore but use the pre-deployed bytecode, PR #2955Bugfixes
forkHash
on timestamp == genesis timestamp, PR #2959Other Changes
v4.0.0
: @ethereumjs/common v4.0.0Compare Source
Final release version from the breaking release round from Summer 2023 on the EthereumJS libraries, thanks to the whole team for this amazing accomplishment! ❤️ 🥳
See RC1 release notes for the main change description.
Following additional changes since RC1:
JSON -> JS for Hardfork, EIP and Chain Configs
We have switched hardfork, EIP and chain configurations in the
Common
library fromJSON
toJavaScript
(TypeScript
). This leads to better typing (and therefore less configuration errors) for (custom) configuration files and avoidsJSON
type assertion related problems for ESM builds, see PR #2911.Following changes:
src/chains/[CHAIN_FILE].json
->src/chains.ts
src/eips/[EIP_FILE].json
->src/eips.ts
src/hardforks/[HARDFORK_FILE].json
->src/hardforks.ts
Other Changes
dataGas
toblobGas
(see EIP-4844 PR #7354), PR #2919Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.