Added new URLs for default ETC (and ETC testnets) providers (#351).
This commit is contained in:
parent
a7e29d60f7
commit
3c184ace21
|
@ -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")
|
||||
},
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue