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

v1.0.0 - TypeScript Release

Compare
Choose a tag to compare
@holgerd77 holgerd77 released this 29 Jan 09:43
· 81 commits to master since this release
2ccf658

First TypeScript based release of the library (for details see
PR #38),
so release coming with type declaration files and additional type safety! 😄

Breaking Changes

Library Import

TypeScript handles ES6 transpilation
a bit differently (at the
end: cleaner) than babel so require syntax of the library slightly changes to:

const Common = require('ethereumjs-common').default

Genesis State Import/Usage

Import path and usage API of genesis state has changed, see also the
docs on this,
PR #39:

const mainnetGenesisState = require('ethereumjs-common/dist/genesisStates/mainnet')

Or by accessing dynamically:

const genesisStates = require('ethereumjs-common/dist/genesisStates')
const mainnetGenesisState = genesisStates.genesisStateByName('mainnet')
const mainnetGenesisState = genesisStates.genesisStateById(1) // alternative via network Id

Removed hybridCasper (draft) hardfork

Not likely that anyone has used this, but just in case:
The once anticipated hybridCasper (draft) hardfork has been removed from the
list of hardforks, see PR #37