Skip to content

Commit

Permalink
Added new URLs for default ETC (and ETC testnets) providers (#351).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jan 8, 2020
1 parent a7e29d6 commit 3c184ac
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions packages/networks/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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")
},
}

/**
Expand Down

0 comments on commit 3c184ac

Please sign in to comment.