Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aniket-engg/eth-forks
A tiny library to get Ethereum hardfork details
https://github.com/aniket-engg/eth-forks
ethereum evm forks
Last synced: 26 days ago
JSON representation
A tiny library to get Ethereum hardfork details
- Host: GitHub
- URL: https://github.com/aniket-engg/eth-forks
- Owner: Aniket-Engg
- Created: 2021-06-27T07:37:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-24T13:01:06.000Z (over 2 years ago)
- Last Synced: 2024-10-04T19:31:27.466Z (about 2 months ago)
- Topics: ethereum, evm, forks
- Language: TypeScript
- Homepage:
- Size: 98.6 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![npm version](https://badge.fury.io/js/eth-forks.svg)](https://www.npmjs.com/package/eth-forks)
[![Build status](https://travis-ci.com/Aniket-Engg/eth-forks.svg?branch=main)](https://travis-ci.com/Aniket-Engg/eth-forks)
[![npm](https://img.shields.io/npm/dw/eth-forks.svg)](https://www.npmjs.com/package/eth-forks)
[![npm](https://img.shields.io/npm/dt/eth-forks.svg?label=Total%20Downloads)](https://www.npmjs.com/package/eth-forks)
![NPM](https://img.shields.io/npm/l/eth-forks.svg)
[![Package Quality](https://npm.packagequality.com/shield/eth-forks.svg)](https://packagequality.com/#?package=eth-forks)# 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;
const forkDetailsByName: (forkName: string) => Record;
const fullForkDetails: Record>;
```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"]
```## Contribution
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/Aniket-Engg/eth-forks/issues)