Skip to content

Releases: taylorjdawson/eth-chains

v2.0.0

31 May 23:21
673e759
Compare
Choose a tag to compare

Update chains based on latest data from chainId.network

1.0.0: Chain Updates + New Helpers

06 Jul 19:47
1f229d9
Compare
Choose a tag to compare

✨ 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)

See list of available chains.

🚨 Breaking Changes 🚨

  • The network property on the Chain 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 🙌

07 Dec 00:47
e898ed7
Compare
Choose a tag to compare

This release updates the library with the latest chains from the chain list repo.

Breaking Change:

  • The explorers property on the Chain type is now optional.

Full Changelog: 0.3.5...0.4.0

Fixes missing dist folder

04 Jul 15:57
aef6269
Compare
Choose a tag to compare
0.3.5

Version bump

Sync with chains repo

24 Jun 18:44
904714b
Compare
Choose a tag to compare

Syncs with the chains repo - adds more chains.

Whitelist dist dir to include it in published NPM package

24 Jun 16:47
ed24296
Compare
Choose a tag to compare

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 🧹

11 Jun 07:47
df4a6dd
Compare
Choose a tag to compare

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! 🙌

28 May 16:25
45dcd61
Compare
Choose a tag to compare

This is the first release which includes the basic necessities of eth-chains: Methods, Enums, Types. See README for detailed usage instructions.