Releases: taylorjdawson/eth-chains
v2.0.0
1.0.0: Chain Updates + New Helpers
✨ New Features ✨
Get all Chains
You can now get the whole chains object like so:
import chains from 'eth-chains'
const allChains = chains.all()
// { 1: { name: "Ethereum Mainnet", ..., "infoURL": "https://ethereum.org" }, 2: {...}}
Popular Chains
Helpers to make accessing the most popular chains easier:
import { chain } from 'eth-chains'
console.log(chain.ethereum.rinkeby)
console.log(chain.polygon.mumbai)
🚨 Breaking Changes 🚨
-
The
network
property on theChain
type is now optional (source). It has been removed from several chain objects so make sure to check now before using the property. -
There are several changes made to the chain objects, as well as, the enums. Too many to discuss here. Please refer to the changelog below for detailed comparison on the updates that have been made. Below I list some of the most popular chains that have have changed.
Old chain.name |
New chain.name |
---|---|
Ethereum Testnet Ropsten | Ropsten |
Ethereum Testnet Rinkeby | Rinkeby |
Ethereum Testnet Görli | Goerli |
Optimistic Ethereum | Optimism |
Polygon Testnet Mumbai | Mumbai |
Full Changelog: 0.4.0...1.0.0
Chain Updates 🙌
This release updates the library with the latest chains from the chain list repo.
Breaking Change:
- The
explorers
property on theChain
type is now optional.
Full Changelog: 0.3.5...0.4.0
Fixes missing dist folder
0.3.5 Version bump
Sync with chains repo
Syncs with the chains repo - adds more chains.
Whitelist dist dir to include it in published NPM package
The dist
dir wasn't being included in the published npm package. This release whitelists the dist
dir so that it gets included in the published npm package.
Configuration Updates 🧹
This release sets up the necessary configuration for this module to function properly within projects. It adds type declaration files and package.json main
field points to the correct entry file now.
🚀 Initial release! 🙌
This is the first release which includes the basic necessities of eth-chains
: Methods, Enums, Types. See README for detailed usage instructions.