Skip to content

Commit 1dde315

Browse files
committed
removed deprecated testnets
1 parent fdb095b commit 1dde315

File tree

10 files changed

+10
-27
lines changed

10 files changed

+10
-27
lines changed

apps/remix-dapp/src/utils/txRunner.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,7 @@ export class TxRunner {
158158
const id = Number(chainId)
159159
let name = '';
160160
if (id === 1) name = 'Main';
161-
else if (id === 3) name = 'Ropsten';
162-
else if (id === 4) name = 'Rinkeby';
163161
else if (id === 5) name = 'Goerli';
164-
else if (id === 42) name = 'Kovan';
165162
else if (id === 11155111) name = 'Sepolia';
166163
else name = 'Custom';
167164

apps/remix-ide-e2e/src/tests/terminal.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ module.exports = {
382382
}
383383
384384
function resolveENS() view {
385-
// Same address for Mainnet, Ropsten, Rinkerby, Gorli and other networks;
385+
// Same address for Mainnet, Goerli and other networks;
386386
ENS ens = ENS(0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e);
387387
(,bytes32 node) = NameEncoder.dnsEncodeName("vitalik.eth");
388388
Resolver resolver = ens.resolver(node);

apps/remix-ide-e2e/src/tests/transactionExecution.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ contract C {
723723
}
724724
725725
contract MyResolver {
726-
// Same address for Mainnet, Ropsten, Rinkerby, Gorli and other networks;
726+
// Same address for Mainnet, Goerli and other networks;
727727
ENS ens = ENS(0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e);
728728
729729
function resolve() public view returns(address) {

apps/remix-ide/src/app/tabs/network-module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ethers } from 'ethers'
44

55
export const profile = {
66
name: 'network',
7-
description: 'Manage the network (mainnet, ropsten, goerli...) and the provider (web3, vm, injected)',
7+
description: 'Manage the network (mainnet, goerli, sepolia,...) and the provider (web3, vm, injected)',
88
methods: ['getNetworkProvider', 'getEndpoint', 'detectNetwork', 'addNetwork', 'removeNetwork'],
99
version: packageJson.version,
1010
kind: 'network'

apps/remix-ide/src/blockchain/execution-context.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,7 @@ export class ExecutionContext {
233233
txDetailsLink (network, hash) {
234234
const transactionDetailsLinks = {
235235
Main: 'https://www.etherscan.io/tx/',
236-
Rinkeby: 'https://rinkeby.etherscan.io/tx/',
237-
Ropsten: 'https://ropsten.etherscan.io/tx/',
238236
Sepolia: 'https://sepolia.etherscan.io/tx/',
239-
Kovan: 'https://kovan.etherscan.io/tx/',
240237
Goerli: 'https://goerli.etherscan.io/tx/'
241238
}
242239

apps/remix-ide/src/blockchain/helper.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
const transactionDetailsLinks = {
22
Main: 'https://www.etherscan.io/tx/',
3-
Rinkeby: 'https://rinkeby.etherscan.io/tx/',
4-
Ropsten: 'https://ropsten.etherscan.io/tx/',
5-
Kovan: 'https://kovan.etherscan.io/tx/',
63
Goerli: 'https://goerli.etherscan.io/tx/',
74
Sepolia: 'https://sepolia.etherscan.io/tx/'
85
}

libs/remix-core-plugin/src/lib/compiler-fetch-and-compile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class FetchAndCompile extends Plugin {
1818
constructor () {
1919
super(profile)
2020
this.unresolvedAddresses = []
21-
this.sourceVerifierNetWork = ['Main', 'Rinkeby', 'Ropsten', 'Goerli']
21+
this.sourceVerifierNetWork = ['Main', 'Goerli', 'Sepolia']
2222
}
2323

2424
/**

libs/remix-core-plugin/src/lib/compiler-metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class CompilerMetadata extends Plugin {
1616
buildInfoNames: Record<string, string>
1717
constructor () {
1818
super(profile)
19-
this.networks = ['VM:-', 'main:1', 'ropsten:3', 'rinkeby:4', 'kovan:42', 'goerli:5', 'Custom']
19+
this.networks = ['VM:-', 'main:1', 'goerli:5', 'sepolia:11155111', 'Custom']
2020
this.innerPath = 'artifacts'
2121
this.buildInfoNames = {}
2222
}

libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,6 @@ export const DebuggerUI = (props: DebuggerUIProps) => {
265265
try {
266266
const networkId = (await web3.getNetwork()).chainId
267267
trackMatomoEvent({ category: 'debugger', action: 'startDebugging', value: networkId, isClick: true })
268-
if (networkId === 42) {
269-
setState((prevState) => {
270-
return {
271-
...prevState,
272-
validationError: 'Unfortunately, the Kovan network is not supported.'
273-
}
274-
})
275-
return
276-
}
277268
} catch (e) {
278269
console.error(e)
279270
}

libs/remix-ui/editor/src/lib/remix-plugin-types.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,10 +604,11 @@ declare type MethodParams<T extends Api, K extends MethodKey<T>> = T extends Api
604604
declare type Network =
605605
| { id: '1', name: 'Main' }
606606
| { id: '2', name: 'Morden (deprecated)' }
607-
| { id: '3', name: 'Ropsten' }
608-
| { id: '4', name: 'Rinkeby' }
609-
| { id: '5', name: 'Goerli' }
610-
| { id: '42', name: 'Kovan' }
607+
| { id: '3', name: 'Ropsten (deprecated)' }
608+
| { id: '4', name: 'Rinkeby (deprecated)' }
609+
| { id: '5', name: 'Goerli (deprecated)' }
610+
| { id: '42', name: 'Kovan (deprecated)' }
611+
| { id: '11155111', name: 'Sepolia' }
611612
612613
/** @deprecated: current version in Remix IDE. To improve to match standard JSON RPC methods */
613614
declare type NetworkProvider = 'vm' | 'injected' | 'web3'

0 commit comments

Comments
 (0)