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 } = {
unspecified: {
chainId: 0,
name: "unspecified"
},
unspecified: { chainId: 0, name: "unspecified" },
homestead: homestead,
mainnet: homestead,
morden: {
chainId: 2,
name: "morden"
},
morden: { chainId: 2, name: "morden" },
ropsten: ropsten,
testnet: ropsten,
@ -172,13 +166,10 @@ const networks: { [name: string]: Network } = {
classic: {
chainId: 61,
name: "classic",
_defaultProvider: etcDefaultProvider("https://www.ethercluster.com/etc", "classic")
_defaultProvider: etcDefaultProvider("https:/\/www.ethercluster.com/etc", "classic")
},
classicMorden: {
chainId: 62,
name: "classicMorden",
},
classicMorden: { chainId: 62, name: "classicMorden" },
classicMordor: classicMordor,
classicTestnet: classicMordor,
@ -186,8 +177,15 @@ const networks: { [name: string]: Network } = {
classicKotti: {
chainId: 6,
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" },
}
/**