lint and build working for remix-debug

pull/5/head
aniket-engg 4 years ago
parent 1e3ef5dd82
commit 4395ea9995
  1. 14
      libs/remix-debug/.eslintrc
  2. 2
      libs/remix-debug/index.js
  3. 2
      libs/remix-debug/package.json
  4. 2
      libs/remix-debug/src/Ethdebugger.js
  5. 2
      libs/remix-debug/src/cmdline/contextManager.js
  6. 4
      libs/remix-debug/src/cmdline/index.js
  7. 2
      libs/remix-debug/src/debugger/VmDebugger.js
  8. 2
      libs/remix-debug/src/debugger/debugger.js
  9. 2
      libs/remix-debug/src/debugger/solidityLocals.js
  10. 2
      libs/remix-debug/src/debugger/solidityState.js
  11. 2
      libs/remix-debug/src/debugger/stepManager.js
  12. 2
      libs/remix-debug/src/solidity-decoder/astHelper.js
  13. 2
      libs/remix-debug/src/solidity-decoder/internalCallTree.js
  14. 2
      libs/remix-debug/src/solidity-decoder/solidityProxy.js
  15. 2
      libs/remix-debug/src/solidity-decoder/types/ArrayType.js
  16. 2
      libs/remix-debug/src/solidity-decoder/types/DynamicByteArray.js
  17. 3
      libs/remix-debug/src/storage/mappingPreimages.js
  18. 2
      libs/remix-debug/src/storage/storageResolver.js
  19. 2
      libs/remix-debug/src/storage/storageViewer.js
  20. 2
      libs/remix-debug/test/debugger.js
  21. 2
      libs/remix-debug/test/decoder/decodeInfo.js
  22. 2
      libs/remix-debug/test/decoder/localDecoder.js
  23. 2
      libs/remix-debug/test/decoder/localsTests/int.js
  24. 2
      libs/remix-debug/test/decoder/localsTests/misc.js
  25. 2
      libs/remix-debug/test/decoder/localsTests/misc2.js
  26. 2
      libs/remix-debug/test/decoder/localsTests/structArray.js
  27. 2
      libs/remix-debug/test/decoder/mockStorageResolver.js
  28. 2
      libs/remix-debug/test/decoder/stateTests/mapping.js
  29. 2
      libs/remix-debug/test/decoder/storageDecoder.js
  30. 2
      libs/remix-debug/test/decoder/storageLocation.js
  31. 2
      libs/remix-debug/test/decoder/vmCall.js
  32. 2
      libs/remix-debug/test/vmCall.js
  33. 17
      libs/remix-debug/tsconfig.lib.json
  34. 2
      libs/remix-lib/package.json
  35. 2
      tsconfig.json
  36. 25
      workspace.json

@ -0,0 +1,14 @@
{
"extends": "../../.eslintrc",
"rules": {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unused-vars": "off"
},
"env": {
"browser": true,
"amd": true,
"node": true,
"es6": true
},
"ignorePatterns": ["!**/*"]
}

@ -8,7 +8,7 @@ const StorageResolver = require('./src/storage/storageResolver')
const SolidityDecoder = require('./src/solidity-decoder')
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const BreakpointManager = remixLib.code.BreakpointManager
/*

@ -21,7 +21,7 @@
"commander": "^2.19.0",
"ethereumjs-util": "^6.2.0",
"ethereumjs-vm": "4.1.3",
"remix-lib": "0.4.29",
"@remix-project/remix-lib": "0.4.29",
"web3": "^1.2.4"
},
"devDependencies": {

@ -9,7 +9,7 @@ const stateDecoder = SolidityDecoder.stateDecoder
const localDecoder = SolidityDecoder.localDecoder
const InternalCallTree = SolidityDecoder.InternalCallTree
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const TraceManager = remixLib.trace.TraceManager
const CodeManager = remixLib.code.CodeManager
const traceHelper = remixLib.helpers.trace

@ -1,4 +1,4 @@
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const EventManager = remixLib.EventManager
const Web3Providers = remixLib.vm.Web3Providers

@ -1,8 +1,8 @@
const Web3 = require('web3')
const Debugger = require('../debugger/debugger.js')
const ContextManager = require('./contextManager.js')
const EventManager = require('events')
const remixLib = require('remix-lib')
import EventManager from 'events'
const remixLib = require('@remix-project/remix-lib')
const executionContext = remixLib.execution.executionContext
class CmdLine {

@ -1,4 +1,4 @@
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const EventManager = remixLib.EventManager
const ui = remixLib.helpers.ui
const StorageResolver = require('../storage/storageResolver')

@ -1,6 +1,6 @@
'use strict'
const Ethdebugger = require('../Ethdebugger')
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const EventManager = remixLib.EventManager
const traceHelper = remixLib.helpers.trace
const OffsetToColumnConverter = remixLib.OffsetToColumnConverter

@ -1,4 +1,4 @@
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const EventManager = remixLib.EventManager
const localDecoder = require('../solidity-decoder/localDecoder')

@ -1,4 +1,4 @@
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const EventManager = remixLib.EventManager
const stateDecoder = require('../solidity-decoder/stateDecoder')
const StorageViewer = require('../storage/storageViewer')

@ -1,4 +1,4 @@
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const EventManager = remixLib.EventManager
const util = remixLib.util

@ -1,5 +1,5 @@
'use strict'
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const AstWalker = remixLib.AstWalker
/**

@ -1,5 +1,5 @@
'use strict'
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const SourceLocationTracker = remixLib.SourceLocationTracker
const AstWalker = remixLib.AstWalker
const EventManager = remixLib.EventManager

@ -1,5 +1,5 @@
'use strict'
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const traceHelper = remixLib.helpers.trace
const stateDecoder = require('./stateDecoder')
const astHelper = require('./astHelper')

@ -1,6 +1,6 @@
'use strict'
const util = require('./util')
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const sha3256 = remixLib.util.sha3_256
const BN = require('ethereumjs-util').BN
const RefType = require('./RefType')

@ -1,6 +1,6 @@
'use strict'
const util = require('./util')
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const sha3256 = remixLib.util.sha3_256
const BN = require('ethereumjs-util').BN
const RefType = require('./RefType')

@ -25,8 +25,7 @@ async function decodeMappingsKeys (web3, storage, corrections, callback) {
preimage = await getPreimage(web3, '0x' + corrected)
if (preimage) break
}
} catch (e) {
}
} catch (e) {} // eslint-disable-line no-empty
if (preimage) {
// got preimage!
// get mapping position (i.e. storage slot), its the last 32 bytes

@ -1,5 +1,5 @@
'use strict'
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const traceHelper = remixLib.helpers.trace
const mappingPreimages = require('./mappingPreimages')

@ -1,5 +1,5 @@
'use strict'
const remixLib = require('remix-lib')
const remixLib = require('@remix-project/remix-lib')
const util = remixLib.util
const mappingPreimages = require('./mappingPreimages')

@ -1,5 +1,5 @@
var tape = require('tape')
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
var compilerInput = remixLib.helpers.compiler.compilerInput
var vmCall = require('./vmCall')
var Debugger = require('../src/Ethdebugger')

@ -6,7 +6,7 @@ var decodeInfo = require('../../src/solidity-decoder/decodeInfo')
var stateDecoder = require('../../src/solidity-decoder/stateDecoder')
var contracts = require('./contracts/miscContracts')
var simplecontracts = require('./contracts/simpleContract')
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
var compilerInput = remixLib.helpers.compiler.compilerInput
var util = require('../../src/solidity-decoder/types/util')

@ -4,7 +4,7 @@ var compiler = require('solc')
var intLocal = require('./contracts/intLocal')
var miscLocal = require('./contracts/miscLocal')
var structArrayLocal = require('./contracts/structArrayLocal')
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
var vmCall = require('./vmCall')
var intLocalTest = require('./localsTests/int')
var miscLocalTest = require('./localsTests/misc')

@ -1,7 +1,7 @@
'use strict'
var vmCall = require('../vmCall')
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
var TraceManager = remixLib.trace.TraceManager
var CodeManager = remixLib.code.CodeManager

@ -1,6 +1,6 @@
'use strict'
var vmCall = require('../vmCall')
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
var traceHelper = remixLib.helpers.trace
var SolidityProxy = require('../../../src/solidity-decoder/solidityProxy')
var InternalCallTree = require('../../../src/solidity-decoder/internalCallTree')

@ -1,6 +1,6 @@
'use strict'
var vmCall = require('../vmCall')
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
var traceHelper = remixLib.helpers.trace
var SolidityProxy = require('../../../src/solidity-decoder/solidityProxy')
var InternalCallTree = require('../../../src/solidity-decoder/internalCallTree')

@ -1,6 +1,6 @@
'use strict'
var vmCall = require('../vmCall')
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
var traceHelper = remixLib.helpers.trace
var SolidityProxy = require('../../../src/solidity-decoder/solidityProxy')
var InternalCallTree = require('../../../src/solidity-decoder/internalCallTree')

@ -1,5 +1,5 @@
'use strict'
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
var util = remixLib.util
class MockStorageResolver {

@ -1,4 +1,4 @@
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
var compilerInput = remixLib.helpers.compiler.compilerInput
var TraceManager = remixLib.trace.TraceManager

@ -3,7 +3,7 @@ var tape = require('tape')
var compiler = require('solc')
var stateDecoder = require('../../src/solidity-decoder/stateDecoder')
var MockStorageResolver = require('./mockStorageResolver')
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
var compilerInput = remixLib.helpers.compiler.compilerInput
var testMappingStorage = require('./stateTests/mapping')

@ -3,7 +3,7 @@ var tape = require('tape')
var compiler = require('solc')
var stateDecoder = require('../../src/solidity-decoder/stateDecoder')
var contracts = require('./contracts/miscContracts')
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
var compilerInput = remixLib.helpers.compiler.compilerInput
tape('solidity', function (t) {

@ -3,7 +3,7 @@ var utileth = require('ethereumjs-util')
var Tx = require('ethereumjs-tx').Transaction
var Block = require('ethereumjs-block')
var BN = require('ethereumjs-util').BN
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
var EthJSVM = require('ethereumjs-vm').default
function sendTx (vm, from, to, value, data, cb) {

@ -3,7 +3,7 @@ var utileth = require('ethereumjs-util')
var Tx = require('ethereumjs-tx').Transaction
var Block = require('ethereumjs-block')
var BN = require('ethereumjs-util').BN
var remixLib = require('remix-lib')
var remixLib = require('@remix-project/remix-lib')
function sendTx (vm, from, to, value, data, cb) {
var tx = new Tx({

@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "../../dist/out-tsc",
"allowJs": true,
"declaration": true,
"rootDir": "./",
"types": ["node"]
},
"exclude": ["**/*.spec.js"],
"include": [
"src/**/*.js",
"./index.js"
]
}

@ -1,5 +1,5 @@
{
"name": "remix-lib",
"name": "@remix-project/remix-lib",
"version": "0.4.29",
"description": "Ethereum IDE and tools for the web",
"contributors": [

@ -19,7 +19,7 @@
"@remix-project/remix-analyzer": ["libs/remix-analyzer/index.ts"],
"@remix-project/remix-astwalker": ["libs/remix-astwalker/src/index.ts"],
"@remix-project/remix-debug": ["libs/remix-debug/index.js"],
"@remix-project/remix-lib": ["libs/remix-lib/index.js"],
"@remix-project/remix-lib": ["dist/libs/remix-lib/index.js"],
"@remix-project/remix-simulator": ["libs/remix-simulator/index.js"],
"@remix-project/remix-solidity": ["libs/remix-solidity/index.ts"],
"@remix-project/remix-tests": ["libs/remix-tests/src/index.ts"],

@ -154,29 +154,36 @@
"schematics": {},
"architect": {
"lint": {
"builder": "@nrwl/workspace:run-commands",
"builder": "@nrwl/linter:lint",
"options": {
"commands": [
{
"command": "./../../node_modules/.bin/npm-run-all lint"
}
"linter": "eslint",
"config": "libs/remix-debug/.eslintrc",
"files": [
"libs/remix-debug/**/*.js"
],
"cwd": "libs/remix-debug"
"exclude": ["**/node_modules/**", "libs/remix-debug/test/**/*"]
}
},
"test": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "rm -rf ../../dist"
},
{
"command": "./../../node_modules/.bin/npm-run-all test"
}
],
"cwd": "libs/remix-debug"
}
},
"build": {
"builder": "@nrwl/node:package",
"options": {
"outputPath": "dist/libs/remix-debug",
"tsConfig": "libs/remix-debug/tsconfig.lib.json",
"packageJson": "libs/remix-debug/package.json",
"main": "libs/remix-debug/index.js",
"assets": ["libs/remix-debug/*.md"]
}
}
}
},

Loading…
Cancel
Save