Skip to content

Commit

Permalink
Merge branch 'master' into client/prepare-kaustinen-7
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrocheleau authored Jul 16, 2024
2 parents 1b6d696 + 80fcde6 commit a1f607d
Show file tree
Hide file tree
Showing 271 changed files with 4,446 additions and 3,719 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,9 @@ Temporary Items
# ethereumjs
datadir*

## Vite
stats.html
*bundle*.js

## Vitest
__snapshots__
7 changes: 0 additions & 7 deletions FUNDING.json

This file was deleted.

11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ Below you can find a list of the packages included in this repository.

The following are our currently active branches:

| Branch | Release Series | Status |  Description |
| --------------------------------------------------------------------------------------- | -------------- | ------------- | ---------------------------------- |
| [master](https://github.com/ethereumjs/ethereumjs-monorepo) | v7 | `Active` | Current release and working branch |
| [maintenance-v6](https://github.com/ethereumjs/ethereumjs-monorepo/tree/maintenance-v6) | v6 | `Maintenance` | Maintenance for v6 releases |
| Branch | Release Series | Status |  Description |
| --------------------------------------------------------------------------------------- | ---------------------- | ------------- | ---------------------------------------------- |
| [master](https://github.com/ethereumjs/ethereumjs-monorepo) | Upcoming (Autumn 2024) | `Develop` | Breaking release work |
| [maintenance-v8](https://github.com/ethereumjs/ethereumjs-monorepo/tree/maintenance-v8) | v7/v8 | `Maintenance` | Maintenance for v8 releases (v7 also included) |
| [maintenance-v6](https://github.com/ethereumjs/ethereumjs-monorepo/tree/maintenance-v6) | v6 | `Maintenance` | Maintenance for v6 releases |

Breaking releases are done in sync for all libraries, and release cycles are named after the `@ethereumjs/vm` version. In most cases PRs should be opened towards the current working branch.
Breaking releases are mostly done in sync for all libraries (latest exceptions: VM v8, EVM v3), and release cycles are currently named after the `@ethereumjs/vm` version. In most cases PRs should be opened towards the current working branch. If there is no current working branch, please ask! 🙂

To inspect code related to a specific package version, refer to the [tags](https://github.com/ethereumjs/ethereumjs-monorepo/tags).

Expand Down
4 changes: 2 additions & 2 deletions config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"sourceMap": true,
"declaration": true,
"declarationMap": true,
"module": "Node16",
"moduleResolution": "node",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"esModuleInterop": false,
Expand Down
6 changes: 5 additions & 1 deletion config/tsconfig.prod.cjs.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"extends": "./tsconfig.json"
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "Node16",
"moduleResolution": "node"
}
}
5 changes: 1 addition & 4 deletions config/tsconfig.prod.esm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "esnext"
}
"extends": "./tsconfig.json"
}
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/block/examples/1559.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Block } from '@ethereumjs/block'
import { Block, createBlockFromBlockData } from '@ethereumjs/block'
import { Chain, Common, Hardfork } from '@ethereumjs/common'
const common = new Common({ chain: Chain.Mainnet, hardfork: Hardfork.London })

const block = Block.fromBlockData(
const block = createBlockFromBlockData(
{
header: {
baseFeePerGas: BigInt(10),
Expand All @@ -19,7 +19,7 @@ console.log(Number(block.header.calcNextBaseFee())) // 11

// So for creating a block with a matching base fee in a certain
// chain context you can do:
const blockWithMatchingBaseFee = Block.fromBlockData(
const blockWithMatchingBaseFee = createBlockFromBlockData(
{
header: {
baseFeePerGas: block.header.calcNextBaseFee(),
Expand Down
4 changes: 2 additions & 2 deletions packages/block/examples/4844.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Common, Chain, Hardfork } from '@ethereumjs/common'
import { Block } from '@ethereumjs/block'
import { Block, createBlockFromBlockData } from '@ethereumjs/block'
import { BlobEIP4844Transaction } from '@ethereumjs/tx'
import { Address } from '@ethereumjs/util'
import { loadKZG } from 'kzg-wasm'
Expand All @@ -20,7 +20,7 @@ const main = async () => {
{ common }
)

const block = Block.fromBlockData(
const block = createBlockFromBlockData(
{
header: {
excessBlobGas: 0n,
Expand Down
4 changes: 2 additions & 2 deletions packages/block/examples/clique.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Block } from '@ethereumjs/block'
import { Block, createBlockFromBlockData } from '@ethereumjs/block'
import { Chain, Common, Hardfork } from '@ethereumjs/common'

const common = new Common({ chain: Chain.Goerli, hardfork: Hardfork.Chainstart })

console.log(common.consensusType()) // 'poa'
console.log(common.consensusAlgorithm()) // 'clique'

Block.fromBlockData({ header: { extraData: new Uint8Array(97) } }, { common })
createBlockFromBlockData({ header: { extraData: new Uint8Array(97) } }, { common })
console.log(`Old Clique Proof-of-Authority block created`)
4 changes: 2 additions & 2 deletions packages/block/examples/pos.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Block } from '@ethereumjs/block'
import { Block, createBlockFromBlockData } from '@ethereumjs/block'
import { Chain, Common } from '@ethereumjs/common'

const common = new Common({ chain: Chain.Mainnet })

const block = Block.fromBlockData(
const block = createBlockFromBlockData(
{
// Provide your block data here or use default values
},
Expand Down
4 changes: 2 additions & 2 deletions packages/block/examples/pow.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Block } from '@ethereumjs/block'
import { Block, createBlockFromBlockData } from '@ethereumjs/block'
import { Chain, Common, Hardfork } from '@ethereumjs/common'

const common = new Common({ chain: Chain.Mainnet, hardfork: Hardfork.Chainstart })

console.log(common.consensusType()) // 'pow'
console.log(common.consensusAlgorithm()) // 'ethash'

Block.fromBlockData({}, { common })
createBlockFromBlockData({}, { common })
console.log(`Old Proof-of-Work block created`)
4 changes: 2 additions & 2 deletions packages/block/examples/withdrawals.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Block } from '@ethereumjs/block'
import { Block, createBlockFromBlockData } from '@ethereumjs/block'
import { Common, Chain } from '@ethereumjs/common'
import { Address, hexToBytes } from '@ethereumjs/util'
import type { WithdrawalData } from '@ethereumjs/util'
Expand All @@ -12,7 +12,7 @@ const withdrawal = <WithdrawalData>{
amount: BigInt(1000),
}

const block = Block.fromBlockData(
const block = createBlockFromBlockData(
{
header: {
withdrawalsRoot: hexToBytes(
Expand Down
3 changes: 2 additions & 1 deletion packages/block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
},
"license": "MPL-2.0",
"author": "mjbecze ([email protected])",
"type": "commonjs",
"type": "module",
"sideEffects": false,
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
Expand Down
Loading

0 comments on commit a1f607d

Please sign in to comment.