From 75de98277283ef4e0280474a2e3409cea806af0b Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 20 Jul 2018 19:37:50 +0300 Subject: [PATCH] move code runner to core modules --- lib/contracts/blockchain.js | 1 + lib/core/engine.js | 2 +- lib/{ => core/modules}/coderunner/codeRunner.js | 0 lib/{ => core/modules}/coderunner/runCode.js | 0 4 files changed, 2 insertions(+), 1 deletion(-) rename lib/{ => core/modules}/coderunner/codeRunner.js (100%) rename lib/{ => core/modules}/coderunner/runCode.js (100%) diff --git a/lib/contracts/blockchain.js b/lib/contracts/blockchain.js index c94a8321d..0a5334e9d 100644 --- a/lib/contracts/blockchain.js +++ b/lib/contracts/blockchain.js @@ -5,6 +5,7 @@ const utils = require('../utils/utils'); const WEB3_READY = 'web3Ready'; +// TODO: consider another name, this is the blockchain connector class Blockchain { constructor(options) { const self = this; diff --git a/lib/core/engine.js b/lib/core/engine.js index 6af649747..4aa22b2ef 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -142,7 +142,7 @@ class Engine { } codeRunnerService(_options) { - const CodeRunner = require('../coderunner/codeRunner.js'); + const CodeRunner = require('./modules/coderunner/codeRunner.js'); this.codeRunner = new CodeRunner({ plugins: this.plugins, events: this.events, diff --git a/lib/coderunner/codeRunner.js b/lib/core/modules/coderunner/codeRunner.js similarity index 100% rename from lib/coderunner/codeRunner.js rename to lib/core/modules/coderunner/codeRunner.js diff --git a/lib/coderunner/runCode.js b/lib/core/modules/coderunner/runCode.js similarity index 100% rename from lib/coderunner/runCode.js rename to lib/core/modules/coderunner/runCode.js