Added some popular Ethereum-compatible chains to networks.

This commit is contained in:
Richard Moore 2021-05-13 22:58:16 -04:00
parent 26464c5425
commit b6370f1360
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -131,18 +131,12 @@ const classicMordor: Network = {
}; };
const networks: { [name: string]: Network } = { const networks: { [name: string]: Network } = {
unspecified: { unspecified: { chainId: 0, name: "unspecified" },
chainId: 0,
name: "unspecified"
},
homestead: homestead, homestead: homestead,
mainnet: homestead, mainnet: homestead,
morden: { morden: { chainId: 2, name: "morden" },
chainId: 2,
name: "morden"
},
ropsten: ropsten, ropsten: ropsten,
testnet: ropsten, testnet: ropsten,
@ -172,13 +166,10 @@ const networks: { [name: string]: Network } = {
classic: { classic: {
chainId: 61, chainId: 61,
name: "classic", name: "classic",
_defaultProvider: etcDefaultProvider("https://www.ethercluster.com/etc", "classic") _defaultProvider: etcDefaultProvider("https:/\/www.ethercluster.com/etc", "classic")
}, },
classicMorden: { classicMorden: { chainId: 62, name: "classicMorden" },
chainId: 62,
name: "classicMorden",
},
classicMordor: classicMordor, classicMordor: classicMordor,
classicTestnet: classicMordor, classicTestnet: classicMordor,
@ -186,8 +177,15 @@ const networks: { [name: string]: Network } = {
classicKotti: { classicKotti: {
chainId: 6, chainId: 6,
name: "classicKotti", name: "classicKotti",
_defaultProvider: etcDefaultProvider("https://www.ethercluster.com/kotti", "classicKotti") _defaultProvider: etcDefaultProvider("https:/\/www.ethercluster.com/kotti", "classicKotti")
}, },
xdai: { chainId: 100, name: "xdai" },
matic: { chainId: 137, name: "matic" },
bnb: { chainId: 56, name: "bnb" },
bnbt: { chainId: 97, name: "bnbt" },
} }
/** /**