Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Commit 21269c2

Browse files
committed
Bumped version to v0.5.0, added CHANGELOG entry, some doc and README updates
1 parent f426d93 commit 21269c2

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

88

9+
## [0.5.0] - 2018-08-27
10+
- Introduces **support for private chains** by allowing to pass a custom dictionary as the ``chain`` parameter
11+
in the constructor or the ``setChain()`` method as an alternative to just passing one of the predefined
12+
``chain`` ``String`` names (e.g. ``mainnet``, ``ropsten``), PR [#24](https://github.com/ethereumjs/ethereumjs-common/pull/24)
13+
14+
15+
[0.5.0]: https://github.com/ethereumjs/ethereumjs-common/compare/v0.4.1...v0.5.0
16+
917
## [0.4.1] - 2018-08-13
1018
- Added ``timestamp`` field to genesis definitions in chain files, set for ``Rinkeby`` and ``null`` for other chains, PR [#21](https://github.com/ethereumjs/ethereumjs-common/pull/21)
1119
- Updated ``Ropsten`` bootstrap nodes, PR [#20](https://github.com/ethereumjs/ethereumjs-common/pull/20)

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ Supported chains:
102102
- ``ropsten``
103103
- ``rinkeby``
104104
- ``kovan``
105+
- Private/custom chain parameters
105106

106107
The following chain-specific parameters are provided:
107108

@@ -115,6 +116,10 @@ The following chain-specific parameters are provided:
115116
To get an overview of the different parameters have a look at one of the chain-specifc
116117
files like ``mainnet.json`` in the ``chains`` directory.
117118

119+
If you want to set up a common instance with parameters for a **private/custom chain** you can pass a
120+
dictionary - conforming to the parameter format described above - with your custom values in
121+
the constructor or the ``setChain()`` method for the ``chain`` parameter.
122+
118123
# Bootstrap Nodes
119124

120125
There is no separate config file for bootstrap nodes like in the old ``ethereum-common`` library.

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Common class to access chain and hardfork parameters
3535

3636
**Parameters**
3737

38-
- `chain` **([String][27] \| [Number][28])** String ('mainnet') or Number (1) chain representation
38+
- `chain` **([String][27] \| [Number][28] | Dictionary)** String ('mainnet') or Number (1) chain
3939
- `hardfork` **[String][27]** String identifier ('byzantium') for hardfork (optional)
4040
- `supportedHardforks` **[Array][29]** Limit parameter returns to the given hardforks (optional)
4141

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const hardforkChanges = require('./hardforks')
77
class Common {
88
/**
99
* @constructor
10-
* @param {String|Number} chain String ('mainnet') or Number (1) chain representation
10+
* @param {String|Number|Dictionary} chain String ('mainnet') or Number (1) chain
1111
* @param {String} hardfork String identifier ('byzantium') for hardfork (optional)
1212
* @param {Array} supportedHardforks Limit parameter returns to the given hardforks (optional)
1313
*/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereumjs-common",
3-
"version": "0.4.1",
3+
"version": "0.5.0",
44
"description": "Resources common to all Ethereum implementations",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)