Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
77b8aa40
Commit
77b8aa40
authored
Oct 04, 2018
by
Iuri Matias
Committed by
yann300
Nov 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove debugger UI dependency out of solidityState
parent
2dde2ac0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
VmDebugger.js
src/app/debugger/debugger/VmDebugger.js
+4
-2
solidityState.js
src/app/debugger/debugger/solidityState.js
+6
-7
No files found.
src/app/debugger/debugger/VmDebugger.js
View file @
77b8aa40
...
@@ -22,7 +22,7 @@ class VmDebuggerLogic {
...
@@ -22,7 +22,7 @@ class VmDebuggerLogic {
this
.
storageResolver
=
null
this
.
storageResolver
=
null
this
.
tx
=
tx
this
.
tx
=
tx
this
.
debuggerSolidityState
=
new
DebuggerSolidityState
(
_parentUI
,
tx
,
_stepManager
,
_traceManager
,
_codeManager
,
_solidityProxy
)
this
.
debuggerSolidityState
=
new
DebuggerSolidityState
(
tx
,
_stepManager
,
_traceManager
,
_codeManager
,
_solidityProxy
)
this
.
debuggerSolidityLocals
=
new
DebuggerSolidityLocals
(
_parentUI
,
tx
,
_stepManager
,
_traceManager
,
_callTree
)
this
.
debuggerSolidityLocals
=
new
DebuggerSolidityLocals
(
_parentUI
,
tx
,
_stepManager
,
_traceManager
,
_callTree
)
}
}
...
@@ -33,7 +33,6 @@ class VmDebuggerLogic {
...
@@ -33,7 +33,6 @@ class VmDebuggerLogic {
this
.
listenToFullStorageChanges
()
this
.
listenToFullStorageChanges
()
this
.
listenToNewChanges
()
this
.
listenToNewChanges
()
this
.
debuggerSolidityState
.
init
()
this
.
listenToSolidityStateEvents
()
this
.
listenToSolidityStateEvents
()
this
.
debuggerSolidityLocals
.
init
()
this
.
debuggerSolidityLocals
.
init
()
...
@@ -220,6 +219,7 @@ class VmDebuggerLogic {
...
@@ -220,6 +219,7 @@ class VmDebuggerLogic {
listenToSolidityStateEvents
()
{
listenToSolidityStateEvents
()
{
const
self
=
this
const
self
=
this
this
.
_parentUI
.
event
.
register
(
'indexChanged'
,
this
.
debuggerSolidityState
.
init
.
bind
(
this
.
debuggerSolidityState
))
this
.
debuggerSolidityState
.
event
.
register
(
'solidityState'
,
function
(
state
)
{
this
.
debuggerSolidityState
.
event
.
register
(
'solidityState'
,
function
(
state
)
{
self
.
event
.
trigger
(
'solidityState'
,
[
state
])
self
.
event
.
trigger
(
'solidityState'
,
[
state
])
})
})
...
@@ -229,6 +229,8 @@ class VmDebuggerLogic {
...
@@ -229,6 +229,8 @@ class VmDebuggerLogic {
this
.
debuggerSolidityState
.
event
.
register
(
'solidityStateUpdating'
,
function
()
{
this
.
debuggerSolidityState
.
event
.
register
(
'solidityStateUpdating'
,
function
()
{
self
.
event
.
trigger
(
'solidityStateUpdating'
,
[])
self
.
event
.
trigger
(
'solidityStateUpdating'
,
[])
})
})
this
.
_parentUI
.
event
.
register
(
'traceUnloaded'
,
this
.
debuggerSolidityState
.
reset
.
bind
(
this
.
debuggerSolidityState
))
this
.
_parentUI
.
event
.
register
(
'newTraceLoaded'
,
this
.
debuggerSolidityState
.
reset
.
bind
(
this
.
debuggerSolidityState
))
}
}
listenToSolidityLocalsEvents
()
{
listenToSolidityLocalsEvents
()
{
...
...
src/app/debugger/debugger/solidityState.js
View file @
77b8aa40
...
@@ -6,24 +6,20 @@ var StorageViewer = remixDebug.storage.StorageViewer
...
@@ -6,24 +6,20 @@ var StorageViewer = remixDebug.storage.StorageViewer
class
DebuggerSolidityState
{
class
DebuggerSolidityState
{
constructor
(
_parent
,
tx
,
_stepManager
,
_traceManager
,
_codeManager
,
_solidityProxy
)
{
constructor
(
tx
,
_stepManager
,
_traceManager
,
_codeManager
,
_solidityProxy
)
{
this
.
event
=
new
EventManager
()
this
.
event
=
new
EventManager
()
this
.
storageResolver
=
null
this
.
storageResolver
=
null
this
.
parent
=
_parent
this
.
stepManager
=
_stepManager
this
.
stepManager
=
_stepManager
this
.
traceManager
=
_traceManager
this
.
traceManager
=
_traceManager
this
.
codeManager
=
_codeManager
this
.
codeManager
=
_codeManager
this
.
solidityProxy
=
_solidityProxy
this
.
solidityProxy
=
_solidityProxy
this
.
stateVariablesByAddresses
=
{}
this
.
stateVariablesByAddresses
=
{}
this
.
tx
=
tx
this
.
tx
=
tx
_parent
.
event
.
register
(
'traceUnloaded'
,
()
=>
{
this
.
stateVariablesByAddresses
=
{}
})
_parent
.
event
.
register
(
'newTraceLoaded'
,
()
=>
{
this
.
stateVariablesByAddresses
=
{}
})
}
}
init
()
{
init
(
index
)
{
var
self
=
this
var
self
=
this
var
decodeTimeout
=
null
var
decodeTimeout
=
null
this
.
parent
.
event
.
register
(
'indexChanged'
,
this
,
function
(
index
)
{
if
(
index
<
0
)
{
if
(
index
<
0
)
{
return
self
.
event
.
trigger
(
'solidityStateMessage'
,
[
'invalid step index'
])
return
self
.
event
.
trigger
(
'solidityStateMessage'
,
[
'invalid step index'
])
}
}
...
@@ -43,7 +39,10 @@ class DebuggerSolidityState {
...
@@ -43,7 +39,10 @@ class DebuggerSolidityState {
decodeTimeout
=
setTimeout
(
function
()
{
decodeTimeout
=
setTimeout
(
function
()
{
self
.
decode
(
index
)
self
.
decode
(
index
)
},
500
)
},
500
)
})
}
reset
()
{
this
.
stateVariablesByAddresses
=
{}
}
}
decode
(
index
)
{
decode
(
index
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment