Added new URLs for default ETC (and ETC testnets) providers (#351).

This commit is contained in:
Richard Moore 2020-01-08 17:59:21 -05:00
parent a7e29d60f7
commit 3c184ace21
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651
1 changed files with 21 additions and 13 deletions

View File

@ -28,14 +28,6 @@ function ethDefaultProvider(network: string): (providers: any) => any {
} catch(error) { }
}
/* NodeSmith is being discontinued on 2019-12-20
if (providers.NodesmithProvider) {
try {
providerList.push(new providers.NodesmithProvider(network, options.nodesmith));
} catch(error) { }
}
*/
if (providers.AlchemyProvider) {
try {
providerList.push(new providers.AlchemyProvider(network, options.alchemy));
@ -88,6 +80,12 @@ const ropsten: Network = {
_defaultProvider: ethDefaultProvider("ropsten")
};
const classicMordor: Network = {
chainId: 63,
name: "classicMordor",
_defaultProvider: etcDefaultProvider("https://www.ethercluster.com/mordor", "classicMordor")
};
const networks: { [name: string]: Network } = {
unspecified: {
chainId: 0,
@ -125,17 +123,27 @@ const networks: { [name: string]: Network } = {
_defaultProvider: ethDefaultProvider("goerli")
},
// ETC (See: #351)
classic: {
chainId: 61,
name: "classic",
_defaultProvider: etcDefaultProvider("https://web3.gastracker.io", "classic")
_defaultProvider: etcDefaultProvider("https://www.ethercluster.com/etc", "classic")
},
classicTestnet: {
classicMorden: {
chainId: 62,
name: "classicTestnet",
_defaultProvider: etcDefaultProvider("https://web3.gastracker.io/morden", "classicTestnet")
}
name: "classicMorden",
},
classicMordor: classicMordor,
classicTestnet: classicMordor,
classicKotti: {
chainId: 6,
name: "classicKotti",
_defaultProvider: etcDefaultProvider("https://www.ethercluster.com/kotti", "classicKotti")
},
}
/**