You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,13 +43,13 @@ This monorepo uses [Lerna](https://lerna.js.org/). It links the local packages t
43
43
TLDR: Setup
44
44
```sh
45
45
npm install
46
-
npm build
46
+
npm run build
47
47
```
48
48
49
49
TLDR: To update dependencies and (re-)link packages
50
50
```sh
51
51
npm run bootstrap
52
-
npm build
52
+
npm run build
53
53
```
54
54
55
55
Above is the quickest way to set you up. Going down the road, there are two sets of commands: *project* and *package-specific* commands. You can find them at `./package.json` and `./packages/*/package.json`, respectively. Here's a breakdown:
This is the second beta release towards a final library release, see [beta.1 release notes](https://github.com/ethereumjs/ethereumjs-vm/releases/tag/%40ethereumjs%2Ftx%403.0.0-beta.1) for an overview on the full changes since the last publicly released version.
10
12
11
13
- Added `freeze` option to allow for block freeze deactivation (e.g. to allow for subclassing block and adding additional parameters), see PR [#941](https://github.com/ethereumjs/ethereumjs-vm/pull/941)
12
14
-**Breaking:** Difficulty-depending methods `canonicalDifficulty()` and `validateDifficulty()` in block and header now throw on non-PoW chains, see PR [#937](https://github.com/ethereumjs/ethereumjs-vm/pull/937)
Copy file name to clipboardExpand all lines: packages/block/README.md
+34-2Lines changed: 34 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,45 @@
8
8
9
9
Implements schema and functions related to Ethereum's block.
10
10
11
+
Note: this `README` reflects the state of the library from `v3.0.0` onwards. See `README` from the [standalone repository](https://github.com/ethereumjs/ethereumjs-block) for an introduction on the last preceeding release.
12
+
11
13
# INSTALL
12
14
13
15
`npm install @ethereumjs/block`
14
16
15
-
# BROWSER
17
+
# USAGE
18
+
19
+
There are three static factories to instantiate a `Block` or `BlockHeader`:
Properties of a `Block` or `BlockHeader` object are frozen with `Object.freeze()` which gives you enhanced security and consistency properties when working with the instantiated object. This behavior can be modified using the `freeze` option in the constructor if needed.
This is the second beta release towards a final `v5.0.0``Blockchain`library release, see [v5.0.0-beta.1 release notes](https://github.com/ethereumjs/ethereumjs-vm/releases/tag/%40ethereumjs%2Fblockchain%405.0.0-beta.1) for an overview on the full changes since the last publicly released version.
11
+
This is the second beta release towards a final library release, see [beta.1 release notes](https://github.com/ethereumjs/ethereumjs-vm/releases/tag/%40ethereumjs%2Fblockchain%405.0.0-beta.1) for an overview on the full changes since the last publicly released version.
12
12
13
13
This release introduces **new breaking changes**, so please carefully read the additional release note sections!
14
14
@@ -122,8 +122,6 @@ in performance benefits for Node.js consumers, see [here](https://github.com/eth
122
122
- Fixed blockchain hanging forever in case code throws between a semaphore `lock`/`unlock`,
This release replaces the tilde (`~`) dependency from `ethereumjs-util` for a caret (`^`) one, meaning that any update to `ethereumjs-util` v6 will also be available for this library.
Copy file name to clipboardExpand all lines: packages/blockchain/README.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,13 @@
8
8
9
9
A module to store and interact with blocks.
10
10
11
-
# INSTALL
12
-
13
-
`npm install ethereumjs-blockchain`
11
+
Note: this `README` reflects the state of the library from `v5.0.0` onwards. See `README` from the [standalone repository](https://github.com/ethereumjs/ethereumjs-blockchain) for an introduction on the last preceeding release.
14
12
15
-
# API
13
+
# INSTALL
16
14
17
-
[Documentation](./docs/README.md)
15
+
`npm install @ethereumjs/blockchain`
18
16
19
-
# EXAMPLE
17
+
# USAGE
20
18
21
19
The following is an example to iterate through an existing Geth DB (needs `level` to be installed separately).
22
20
@@ -29,8 +27,10 @@ const level = require('level')
29
27
30
28
const gethDbPath ='./chaindata'// Add your own path here. It will get modified, see remarks.
31
29
30
+
const common =newCommon({ chain: 'ropsten' })
32
31
const db =level(gethDbPath)
33
-
const blockchain =newBlockchain({ db })
32
+
// Use the safe static constructor which awaits the init method
33
+
const blockchain =Blockchain.create({ common, db })
**WARNING**: Since `@ethereumjs/blockchain` is also doing write operations on the DB for safety reasons only run this on a copy of your database, otherwise this might lead to a compromised DB state.
43
43
44
+
# API
45
+
46
+
[Documentation](./docs/README.md)
47
+
44
48
# EthereumJS
45
49
46
50
See our organizational [documentation](https://ethereumjs.readthedocs.io) for an introduction to `EthereumJS` as well as information on current standards and best practices.
This is the second beta release towards a final library release, see [beta.1 release notes](https://github.com/ethereumjs/ethereumjs-vm/releases/tag/%40ethereumjs%2Fcommon%402.0.0-beta.1) for an overview on the full changes since the last publicly released version.
10
12
11
13
- Added consensus information to chains, new functions `Common.consensusType()` for consensus type access ("pow" or "poa") and `Common.consensusAlgorithm()` to get the associated algorithm or protocol (e.g. "ethash" PoW algorithm or "clique" PoA protocol), see PR [#937](https://github.com/ethereumjs/ethereumjs-vm/pull/937)
Copy file name to clipboardExpand all lines: packages/common/README.md
+25-17Lines changed: 25 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
Resources common to all Ethereum implementations.
10
10
11
-
Succeeds the old [ethereum/common](https://github.com/ethereumjs/common/) library.
11
+
Note: this `README` reflects the state of the library from `v2.0.0` onwards. See `README` from the [standalone repository](https://github.com/ethereumjs/ethereumjs-common) for an introduction on the last preceeding release.
12
12
13
13
# INSTALL
14
14
@@ -20,30 +20,36 @@ All parameters can be accessed through the `Common` class which can be required
20
20
main package and instantiated either with just the `chain` (e.g. 'mainnet') or the `chain`
21
21
together with a specific `hardfork` provided.
22
22
23
+
If no hardfork is provided the common is initialized with the default hardfork.
It is encouraged to also explicitly set the `supportedHardforks` if the initializing library
44
-
only supports a certain range of `hardforks`:
50
+
If the initializing library only supports a certain range of `hardforks` you can use the `supportedHardforks` option to restrict hardfork access on the `Common` instance:
The `muirGlacier` HF delaying the difficulty bomb and scheduled for January 2020
86
-
is supported by the library since `v1.5.0`.
91
+
General support for the `berlin` hardfork has been added along `v2.0.0`, specification of the hardfork regarding EIPs included was not finalized upon release date.
92
+
93
+
Currently supported `berlin` EIPs:
94
+
95
+
-`EIP-2315`
87
96
88
97
## Parameter Access
89
98
@@ -102,9 +111,6 @@ hardfork.
102
111
The hardfork-specific json files only contain the deltas from `chainstart` and
103
112
shouldn't be accessed directly until you have a specific reason for it.
104
113
105
-
Note: The list of `gasPrices` and gas price changes on hardforks is consistent
106
-
but not complete, so there are currently gas price values missing (PRs welcome!).
107
-
108
114
# Chain Params
109
115
110
116
Supported chains:
@@ -113,14 +119,16 @@ Supported chains:
113
119
-`ropsten`
114
120
-`rinkeby`
115
121
-`kovan`
116
-
-`goerli` (final configuration since `v1.1.0`)
122
+
-`goerli`
117
123
- Private/custom chain parameters
118
124
119
125
The following chain-specific parameters are provided:
0 commit comments