Package Exports
- eth-forks
- eth-forks/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eth-forks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eth-forks
A tiny NPM package to get the details of Ethereum hardforks happened with time.
Note: Please cross-check this information before relying on it. If anything should be updated, please raise a Pull Request
Install
npm install --save eth-forks
How to use
Signature of available methods:
const listOfForks: () => string[];
const forkWithBlock: () => Record<string, number>;
const forkDetailsByName: (forkName: string) => Record<string, number>;
const fullForkDetails: Record<string, Record<string, number>>;
An example to get a list of forks will be as:
import { listOfForks } from 'eth-forks'
console.log(listOfForks())
// ["chainstart", "homestead", "dao", "tangerineWhistle", "spuriousDragon", "byzantium", "constantinople", "petersburg", "istanbul", "muirGlacier", "berlin", "london", "arrowGlacier", "grayGlacier"]