@@ -16,29 +16,6 @@ import { Recorder } from '../tabs/runTab/model/recorder'
1616import { EnvDropdownLabelStateType } from 'libs/remix-ui/run-tab/src/lib/types'
1717const _paq = ( window . _paq = window . _paq || [ ] )
1818
19- const selectedEnvs : EnvDropdownLabelStateType [ ] = [
20- { name : 'Remix VM (Cancun)' , value : 'vm-cancun' , chainId : 'vm-cancun' } ,
21- { name : 'Gnosis Mainnet - MetaMask' , value : 'injected-metamask-gnosis' , chainId : 100 } ,
22- { name : 'L2 - Optimism - MetaMask' , value : 'injected-metamask-optimism' , chainId : 10 } ,
23- { name : 'L2 - Arbitrum - MetaMask' , value : 'injected-metamask-arbitrum' , chainId : 42161 } ,
24- { name : 'Ephemery Testnet - MetaMask' , value : 'injected-metamask-ephemery' , chainId : 39438143 } ,
25- { name : 'Sepolia Testnet - MetaMask' , value : 'injected-metamask-sepolia' , chainId : 11155111 } ,
26- { name : 'L2 - Linea - MetaMask' , value : 'injected-metamask-linea' , chainId : 59144 } ,
27- { name : 'Injected Provider - MetaMask' , value : 'injected-MetaMask' } ,
28- { name : 'WalletConnect' , value : 'walletconnect' } ,
29- { name : 'Remix VM - Mainnet fork' , value : 'vm-mainnet-fork' , chainId : 'vm-mainnet-fork' } ,
30- { name : 'Remix VM - Sepolia fork' , value : 'vm-sepolia-fork' , chainId : 'vm-sepolia-fork' } ,
31- { name : 'Remix VM - Custom fork' , value : 'vm-custom-fork' , chainId : 'vm-custom-fork' } ,
32- { name : 'Remix VM (Shanghai)' , value : 'vm-shanghai' , chainId : 'vm-shanghai' } ,
33- { name : 'Remix VM (Paris)' , value : 'vm-paris' , chainId : 'vm-paris' } ,
34- { name : 'Remix VM (London)' , value : 'vm-london' , chainId : 'vm-london' } ,
35- { name : 'Remix VM (Berlin)' , value : 'vm-berlin' , chainId : 'vm-berlin' } ,
36- { name : 'Custom - External Http Provider' , value : 'basic-http-provider' , chainId : 1741104841094 } ,
37- { name : 'Dev - Hardhat Provider' , value : 'hardhat-provider' , chainId : 31337 } ,
38- { name : 'Dev - Foundry Provider' , value : 'foundry-provider' , chainId : 31337 } ,
39- { name : 'Dev - Ganache Provider' , value : 'ganache-provider' , chainId : 1741104841094 } ,
40- ]
41-
4219const profile = {
4320 name : 'udapp' ,
4421 displayName : 'Deploy & run transactions' ,
@@ -61,8 +38,7 @@ const profile = {
6138 'clearAllInstances' ,
6239 'addInstance' ,
6340 'resolveContractAndAddInstance' ,
64- 'showPluginDetails' ,
65- 'getEnvironmentDropdownLabels'
41+ 'showPluginDetails'
6642 ]
6743}
6844
@@ -79,7 +55,6 @@ export class RunTab extends ViewPlugin {
7955 fileProvider : any
8056 recorder : any
8157 REACT_API : any
82- envDropdownLabelState : EnvDropdownLabelStateType [ ]
8358 el : any
8459 constructor ( blockchain : Blockchain , config : any , fileManager : any , editor : any , filePanel : any , compilersArtefacts : CompilerArtefacts , networkModule : any , fileProvider : any , engine : any ) {
8560 super ( profile )
@@ -95,7 +70,6 @@ export class RunTab extends ViewPlugin {
9570 this . fileProvider = fileProvider
9671 this . recorder = new Recorder ( blockchain )
9772 this . REACT_API = { }
98- this . setEnvironmentDropdownLabels ( )
9973 this . setupEvents ( )
10074 this . el = document . createElement ( 'div' )
10175 }
@@ -140,14 +114,6 @@ export class RunTab extends ViewPlugin {
140114 return this . blockchain . createVMAccount ( newAccount )
141115 }
142116
143- setEnvironmentDropdownLabels ( ) {
144- this . envDropdownLabelState = selectedEnvs
145- }
146-
147- getEnvironmentDropdownLabels ( ) {
148- return this . envDropdownLabelState
149- }
150-
151117 sendTransaction ( tx ) {
152118 _paq . push ( [ 'trackEvent' , 'udapp' , 'sendTx' , 'udappTransaction' ] )
153119 return this . blockchain . sendTransaction ( tx )
0 commit comments