|
|
@ -8,6 +8,7 @@ var vm = require('vm') |
|
|
|
var remixLib = require('remix-lib') |
|
|
|
var remixLib = require('remix-lib') |
|
|
|
var EventManager = remixLib.EventManager |
|
|
|
var EventManager = remixLib.EventManager |
|
|
|
var Web3 = require('web3') |
|
|
|
var Web3 = require('web3') |
|
|
|
|
|
|
|
var swarmgw = require('swarmgw') |
|
|
|
|
|
|
|
|
|
|
|
var CommandInterpreterAPI = require('../../lib/cmdInterpreterAPI') |
|
|
|
var CommandInterpreterAPI = require('../../lib/cmdInterpreterAPI') |
|
|
|
var executionContext = require('../../execution-context') |
|
|
|
var executionContext = require('../../execution-context') |
|
|
@ -575,6 +576,7 @@ class Terminal { |
|
|
|
|
|
|
|
|
|
|
|
function domTerminalFeatures (self, scopedCommands) { |
|
|
|
function domTerminalFeatures (self, scopedCommands) { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
swarmgw, |
|
|
|
ethers, |
|
|
|
ethers, |
|
|
|
remix: self._components.cmdInterpreter, |
|
|
|
remix: self._components.cmdInterpreter, |
|
|
|
web3: executionContext.getProvider() !== 'vm' ? new Web3(executionContext.web3().currentProvider) : null, |
|
|
|
web3: executionContext.getProvider() !== 'vm' ? new Web3(executionContext.web3().currentProvider) : null, |
|
|
|