Skip to content

Commit

Permalink
Last Planned Maintenance v6 Release Round (4844/KZG/SSZ Removal) (#2754)
Browse files Browse the repository at this point in the history
* Add CHANGELOG entries, bump library versions to new minor versions, update upstream dependency versions

* Rebuild package-lock.json

* Rebuild documentation

* Add missing tx PR to CHANGELOG
  • Loading branch information
holgerd77 authored Jun 20, 2023
1 parent e04b6de commit 8508606
Show file tree
Hide file tree
Showing 47 changed files with 454 additions and 1,965 deletions.
214 changes: 107 additions & 107 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions packages/block/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
(modification: no type change headlines) and this project adheres to
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 4.3.0 - 2023-06-06

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](https://github.com/ethereumjs/ethereumjs-monorepo/pull/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.

## 4.2.2 - 2023-04-20

### Bugfixes
Expand Down
110 changes: 31 additions & 79 deletions packages/block/docs/classes/Block.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ An object that represents the block.
- [raw](Block.md#raw)
- [serialize](Block.md#serialize)
- [toJSON](Block.md#tojson)
- [validateBlobTransactions](Block.md#validateblobtransactions)
- [validateData](Block.md#validatedata)
- [validateGasLimit](Block.md#validategaslimit)
- [validateTransactions](Block.md#validatetransactions)
Expand All @@ -44,7 +43,6 @@ An object that represents the block.
- [fromValuesArray](Block.md#fromvaluesarray)
- [genTransactionsTrieRoot](Block.md#gentransactionstrieroot)
- [genWithdrawalsTrieRoot](Block.md#genwithdrawalstrieroot)
- [generateWithdrawalsSSZRoot](Block.md#generatewithdrawalssszroot)

## Constructors

Expand All @@ -67,7 +65,7 @@ Use the static factory methods to assist in creating a Block object from varying

#### Defined in

[block.ts:289](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L289)
[block.ts:279](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L279)

## Properties

Expand All @@ -77,7 +75,7 @@ Use the static factory methods to assist in creating a Block object from varying

#### Defined in

[block.ts:43](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L43)
[block.ts:41](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L41)

___

Expand All @@ -87,7 +85,7 @@ ___

#### Defined in

[block.ts:38](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L38)
[block.ts:36](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L36)

___

Expand All @@ -97,7 +95,7 @@ ___

#### Defined in

[block.ts:39](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L39)
[block.ts:37](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L37)

___

Expand All @@ -107,7 +105,7 @@ ___

#### Defined in

[block.ts:42](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L42)
[block.ts:40](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L40)

___

Expand All @@ -117,7 +115,7 @@ ___

#### Defined in

[block.ts:40](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L40)
[block.ts:38](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L38)

___

Expand All @@ -127,7 +125,7 @@ ___

#### Defined in

[block.ts:41](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L41)
[block.ts:39](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L39)

## Methods

Expand All @@ -143,7 +141,7 @@ Return a compact error string representation of the object

#### Defined in

[block.ts:586](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L586)
[block.ts:542](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L542)

___

Expand All @@ -165,7 +163,7 @@ Returns the canonical difficulty for this block.

#### Defined in

[block.ts:552](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L552)
[block.ts:508](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L508)

___

Expand All @@ -181,7 +179,7 @@ Generates transaction trie for validation.

#### Defined in

[block.ts:370](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L370)
[block.ts:360](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L360)

___

Expand All @@ -197,7 +195,7 @@ Returns the hash of the block.

#### Defined in

[block.ts:349](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L349)
[block.ts:339](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L339)

___

Expand All @@ -213,7 +211,7 @@ Determines if this block is the genesis block.

#### Defined in

[block.ts:356](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L356)
[block.ts:346](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L346)

___

Expand All @@ -229,7 +227,7 @@ Returns a Buffer Array of the raw Buffers of this block, in order.

#### Defined in

[block.ts:331](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L331)
[block.ts:321](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L321)

___

Expand All @@ -245,7 +243,7 @@ Returns the rlp encoding of the block.

#### Defined in

[block.ts:363](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L363)
[block.ts:353](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L353)

___

Expand All @@ -261,31 +259,7 @@ Returns the block in JSON format.

#### Defined in

[block.ts:569](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L569)

___

### validateBlobTransactions

**validateBlobTransactions**(`parentHeader`): `void`

Validates that data gas fee for each transaction is greater than or equal to the
dataGasPrice for the block and that total data gas in block is less than maximum
data gas per block

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `parentHeader` | [`BlockHeader`](BlockHeader.md) | header of parent block |

#### Returns

`void`

#### Defined in

[block.ts:484](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L484)
[block.ts:525](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L525)

___

Expand All @@ -312,7 +286,7 @@ It checks:

#### Defined in

[block.ts:450](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L450)
[block.ts:427](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L427)

___

Expand All @@ -335,7 +309,7 @@ Throws if invalid

#### Defined in

[block.ts:562](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L562)
[block.ts:518](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L518)

___

Expand All @@ -351,7 +325,7 @@ Validates transaction signatures and minimum gas requirements.

#### Defined in

[block.ts:398](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L398)
[block.ts:388](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L388)

**validateTransactions**(`stringError`): `boolean`

Expand All @@ -367,7 +341,7 @@ Validates transaction signatures and minimum gas requirements.

#### Defined in

[block.ts:399](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L399)
[block.ts:389](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L389)

**validateTransactions**(`stringError`): `string`[]

Expand All @@ -383,7 +357,7 @@ Validates transaction signatures and minimum gas requirements.

#### Defined in

[block.ts:400](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L400)
[block.ts:390](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L390)

___

Expand All @@ -400,7 +374,7 @@ and do a check on the root hash.

#### Defined in

[block.ts:379](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L379)
[block.ts:369](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L369)

___

Expand All @@ -422,7 +396,7 @@ Header does not count an uncle twice.

#### Defined in

[block.ts:528](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L528)
[block.ts:484](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L484)

___

Expand All @@ -438,7 +412,7 @@ Validates the uncle's hash.

#### Defined in

[block.ts:502](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L502)
[block.ts:458](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L458)

___

Expand All @@ -454,7 +428,7 @@ Validates the withdrawal root

#### Defined in

[block.ts:511](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L511)
[block.ts:467](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L467)

___

Expand All @@ -477,7 +451,7 @@ Static constructor to create a block from a block data dictionary

#### Defined in

[block.ts:85](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L85)
[block.ts:75](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L75)

___

Expand All @@ -503,7 +477,7 @@ the block specified by `blockTag`

#### Defined in

[block.ts:233](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L233)
[block.ts:223](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L223)

___

Expand All @@ -526,7 +500,7 @@ Static constructor to create a block from a RLP-serialized block

#### Defined in

[block.ts:137](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L137)
[block.ts:127](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L127)

___

Expand All @@ -550,7 +524,7 @@ Creates a new block object from Ethereum JSON RPC.

#### Defined in

[block.ts:222](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L222)
[block.ts:212](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L212)

___

Expand All @@ -573,7 +547,7 @@ Static constructor to create a block from an array of Buffer values

#### Defined in

[block.ts:153](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L153)
[block.ts:143](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L143)

___

Expand All @@ -596,7 +570,7 @@ Returns the txs trie root for array of TypedTransaction

#### Defined in

[block.ts:71](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L71)
[block.ts:61](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L61)

___

Expand All @@ -619,26 +593,4 @@ Returns the withdrawals trie root for array of Withdrawal.

#### Defined in

[block.ts:50](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L50)

___

### generateWithdrawalsSSZRoot

`Static` **generateWithdrawalsSSZRoot**(`withdrawals`): `Promise`<`void`\>

Returns the ssz root for array of withdrawal transactions.

#### Parameters

| Name | Type |
| :------ | :------ |
| `withdrawals` | `Withdrawal`[] |

#### Returns

`Promise`<`void`\>

#### Defined in

[block.ts:62](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L62)
[block.ts:48](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/block/src/block.ts#L48)
Loading

0 comments on commit 8508606

Please sign in to comment.