Commit 02e12cdc authored by aniket-engg's avatar aniket-engg Committed by Aniket

cmdline src updated

parent ed2dd996
......@@ -25,7 +25,7 @@ program
.option('--node [url]', 'node to connect to')
.parse(process.argv)
const CmdLine = require('../src/cmdline/index.js')
const CmdLine = require('../src/cmdline/index')
const solc = require('solc')
const fs = require('fs')
......
const Web3 = require('web3')
import Web3 from 'web3'
const Debugger = require('../debugger/debugger.js')
import EventManager from 'events'
import { EventEmitter } from 'events'
class CmdLine {
export class CmdLine {
events
lineColumnPos
rawLocation
web3
compilation
debugger
filename
txHash
solidityState
solidityLocals
constructor () {
this.events = new EventManager()
this.events = new EventEmitter()
this.lineColumnPos = null
this.rawLocation = null
}
......@@ -17,8 +28,8 @@ class CmdLine {
loadCompilationData (inputJson, outputJson) {
const data = {}
data.data = outputJson
data.source = { sources: inputJson.sources }
data['data'] = outputJson
data['source'] = { sources: inputJson.sources }
this.loadCompilationResult(data)
}
......@@ -195,5 +206,3 @@ class CmdLine {
console.dir(this.solidityState)
}
}
module.exports = CmdLine
......@@ -8,10 +8,10 @@
"rootDir": "./",
"types": ["node"]
},
"exclude": ["**/*.spec.js"],
"include": [
"src/**/*.js",
"./index.js"
]
"exclude": [
"**/*.spec.js",
"test/"
],
"include": ["**/*.ts"]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment