Skip to content
This repository was archived by the owner on Mar 3, 2021. It is now read-only.

Commit 65744de

Browse files
committed
remove classes from remix-lib to remix-debug
1 parent 00b1e6e commit 65744de

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2376
-1902
lines changed

remix-debug/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ const StorageResolver = require('./src/storage/storageResolver')
88

99
const SolidityDecoder = require('./src/solidity-decoder')
1010

11-
const remixLib = require('remix-lib')
12-
const BreakpointManager = remixLib.code.BreakpointManager
11+
const BreakpointManager = require('./src/code/breakpointManager')
1312

1413
/*
1514
Use of breakPointManager :

remix-debug/package-lock.json

Lines changed: 2137 additions & 1592 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

remix-debug/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"commander": "^2.19.0",
2222
"ethereumjs-util": "^6.2.0",
2323
"ethereumjs-vm": "4.1.3",
24-
"remix-lib": "0.4.29",
2524
"web3": "^1.2.4"
2625
},
2726
"devDependencies": {

remix-debug/src/Ethdebugger.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ const stateDecoder = SolidityDecoder.stateDecoder
99
const localDecoder = SolidityDecoder.localDecoder
1010
const InternalCallTree = SolidityDecoder.InternalCallTree
1111

12-
const remixLib = require('remix-lib')
13-
const TraceManager = remixLib.trace.TraceManager
14-
const CodeManager = remixLib.code.CodeManager
15-
const traceHelper = remixLib.helpers.trace
16-
const EventManager = remixLib.EventManager
12+
const TraceManager = require('./trace/traceManager')
13+
const CodeManager = require('./code/codeManager')
14+
const traceHelper = require('./trace/traceHelper')
15+
const EventManager = require('./eventManager')
1716

1817
/**
1918
* Ethdebugger is a wrapper around a few classes that helps debugging a transaction

remix-debug/src/cmdline/contextManager.js

Lines changed: 0 additions & 58 deletions
This file was deleted.

remix-debug/src/cmdline/index.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
const Web3 = require('web3')
22
const Debugger = require('../debugger/debugger.js')
3-
const ContextManager = require('./contextManager.js')
43
const EventManager = require('events')
5-
const remixLib = require('remix-lib')
6-
const executionContext = remixLib.execution.executionContext
74

85
class CmdLine {
96

107
constructor () {
11-
this.executionContext = executionContext
128
this.events = new EventManager()
139
this.lineColumnPos = null
1410
this.rawLocation = null
@@ -32,21 +28,10 @@ class CmdLine {
3228
}
3329

3430
initDebugger (cb) {
35-
this.contextManager = new ContextManager(this.executionContext)
36-
3731
this.debugger = new Debugger({
38-
web3: this.contextManager.getWeb3(),
32+
web3: this.web3,
3933
compilationResult: () => { return this.compilation.compilationResult }
4034
})
41-
42-
this.contextManager.event.register('providerChanged', () => {
43-
this.debugger.updateWeb3(this.contextManager.getWeb3())
44-
})
45-
46-
this.contextManager.initProviders()
47-
48-
this.contextManager.addProvider('debugger_web3', this.web3)
49-
this.contextManager.switchProvider('debugger_web3', cb)
5035
}
5136

5237
getSource () {

remix-lib/src/code/breakpointManager.js renamed to remix-debug/src/code/breakpointManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const EventManager = require('../eventManager')
4-
const helper = require('../helpers/traceHelper')
4+
const helper = require('../trace/traceHelper')
55

66
/**
77
* allow to manage breakpoint

remix-lib/src/code/codeManager.js renamed to remix-debug/src/code/codeManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict'
22

33
const EventManager = require('../eventManager')
4-
const traceHelper = require('../helpers/traceHelper')
5-
const SourceMappingDecoder = require('../sourceMappingDecoder')
4+
const traceHelper = require('../trace/traceHelper')
5+
const SourceMappingDecoder = require('../source/sourceMappingDecoder')
66
const CodeResolver = require('./codeResolver')
77

88
/*
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)