use new solc version. Update the interface

pull/7/head
LianaHus 5 years ago
parent 271124b013
commit 59451b262b
  1. 41
      package-lock.json
  2. 2
      remix-debug/package.json
  3. 2
      remix-debugger/package.json
  4. 2
      remix-lib/package.json
  5. 2
      remix-solidity/package.json
  6. 7
      remix-solidity/src/compiler/compiler-worker.js
  7. 2
      remix-solidity/src/compiler/compiler.js

41
package-lock.json generated

@ -1721,8 +1721,7 @@
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"aproba": { "aproba": {
"version": "1.2.0", "version": "1.2.0",
@ -1743,14 +1742,12 @@
"balanced-match": { "balanced-match": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
@ -1765,20 +1762,17 @@
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"console-control-strings": { "console-control-strings": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
@ -1895,8 +1889,7 @@
"inherits": { "inherits": {
"version": "2.0.3", "version": "2.0.3",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"ini": { "ini": {
"version": "1.3.5", "version": "1.3.5",
@ -1908,7 +1901,6 @@
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"number-is-nan": "^1.0.0" "number-is-nan": "^1.0.0"
} }
@ -1923,7 +1915,6 @@
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
@ -1931,14 +1922,12 @@
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"minipass": { "minipass": {
"version": "2.3.5", "version": "2.3.5",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"safe-buffer": "^5.1.2", "safe-buffer": "^5.1.2",
"yallist": "^3.0.0" "yallist": "^3.0.0"
@ -1957,7 +1946,6 @@
"version": "0.5.1", "version": "0.5.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"minimist": "0.0.8" "minimist": "0.0.8"
} }
@ -2038,8 +2026,7 @@
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"object-assign": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
@ -2051,7 +2038,6 @@
"version": "1.4.0", "version": "1.4.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1"
} }
@ -2137,8 +2123,7 @@
"safe-buffer": { "safe-buffer": {
"version": "5.1.2", "version": "5.1.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"safer-buffer": { "safer-buffer": {
"version": "2.1.2", "version": "2.1.2",
@ -2174,7 +2159,6 @@
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"code-point-at": "^1.0.0", "code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",
@ -2194,7 +2178,6 @@
"version": "3.0.1", "version": "3.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"ansi-regex": "^2.0.0" "ansi-regex": "^2.0.0"
} }
@ -2238,14 +2221,12 @@
"wrappy": { "wrappy": {
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"yallist": { "yallist": {
"version": "3.0.3", "version": "3.0.3",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
} }
} }
}, },

@ -35,7 +35,7 @@
"babel-eslint": "^7.1.1", "babel-eslint": "^7.1.1",
"babelify": "^10.0.0", "babelify": "^10.0.0",
"notify-error": "^1.2.0", "notify-error": "^1.2.0",
"solc": "^0.5.0", "solc": "^0.5.13",
"standard": "^7.0.1", "standard": "^7.0.1",
"standard-reporter": "^1.0.5", "standard-reporter": "^1.0.5",
"tape": "^4.6.0" "tape": "^4.6.0"

@ -41,7 +41,7 @@
"remix-lib": "^0.2.9", "remix-lib": "^0.2.9",
"remix-solidity": "^0.1.11", "remix-solidity": "^0.1.11",
"selenium-standalone": "^6.0.1", "selenium-standalone": "^6.0.1",
"solc": "^0.4.13", "solc": "^0.5.13",
"standard": "^7.0.1", "standard": "^7.0.1",
"standard-reporter": "^1.0.5", "standard-reporter": "^1.0.5",
"tape": "^4.6.0", "tape": "^4.6.0",

@ -22,7 +22,7 @@
"ethers": "^4.0.27", "ethers": "^4.0.27",
"events": "^3.0.0", "events": "^3.0.0",
"fast-async": "^6.1.2", "fast-async": "^6.1.2",
"solc": "^0.5.0", "solc": "^0.5.13",
"web3": "0.20.6" "web3": "0.20.6"
}, },
"devDependencies": { "devDependencies": {

@ -15,7 +15,7 @@
"main": "./index.js", "main": "./index.js",
"dependencies": { "dependencies": {
"remix-lib": "0.4.15", "remix-lib": "0.4.15",
"solc": "^0.5.0", "solc": "^0.5.13",
"webworkify": "^1.2.1" "webworkify": "^1.2.1"
}, },
"devDependencies": { "devDependencies": {

@ -17,15 +17,16 @@ module.exports = function (self) {
compileJSON = null compileJSON = null
self.importScripts(data.data) self.importScripts(data.data)
var compiler = solc(self.Module) var compiler = solc(self.Module)
compileJSON = function (input) { compileJSON = function (input) {
try { try {
return compiler.compile(input, function (path) { let missingInputsCallback = function (path) {
missingInputs.push(path) missingInputs.push(path)
return { 'error': 'Deferred import' } return { 'error': 'Deferred import' }
}) }
return compiler.compile(input, { import: missingInputsCallback })
} catch (exception) { } catch (exception) {
return JSON.stringify({ error: 'Uncaught JavaScript exception:\n' + exception }) return JSON.stringify({ error: 'Uncaught JavaScript exception:\n' + exception })
} }

@ -101,7 +101,7 @@ function Compiler (handleImportCall) {
var result var result
try { try {
var input = compilerInput(source.sources, {optimize: optimize, evmVersion: evmVersion, language: language, target: source.target}) var input = compilerInput(source.sources, {optimize: optimize, evmVersion: evmVersion, language: language, target: source.target})
result = compiler.compile(input, missingInputsCallback) result = compiler.compile(input, { import: missingInputsCallback })
result = JSON.parse(result) result = JSON.parse(result)
} catch (exception) { } catch (exception) {
result = { error: { formattedMessage: 'Uncaught JavaScript exception:\n' + exception, severity: 'error', mode: 'panic' } } result = { error: { formattedMessage: 'Uncaught JavaScript exception:\n' + exception, severity: 'error', mode: 'panic' } }

Loading…
Cancel
Save