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
e30754b7
Unverified
Commit
e30754b7
authored
Jul 01, 2020
by
yann300
Committed by
GitHub
Jul 01, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2922 from ethereum/add_function_calls_panel
Debugger: layout update
parents
843a8084
81e4c170
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
15 deletions
+19
-15
compiler-sourceVerifier-fetchAndCompile.js
src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js
+1
-1
debugger-tab.js
src/app/tabs/debugger-tab.js
+1
-1
VmDebugger.js
src/app/tabs/debugger/debuggerUI/VmDebugger.js
+13
-9
CodeListView.js
src/app/tabs/debugger/debuggerUI/vmDebugger/CodeListView.js
+1
-1
FunctionPanel.js
src/app/tabs/debugger/debuggerUI/vmDebugger/FunctionPanel.js
+1
-1
landing-page.js
src/app/ui/landing-page/landing-page.js
+2
-2
No files found.
src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js
View file @
e30754b7
...
...
@@ -72,7 +72,7 @@ export default class FetchAndCompile extends Plugin {
name
===
'main'
?
'mainnet'
:
name
// source-verifier api expect "mainnet" and not "main"
let
data
try
{
data
=
await
this
.
call
(
'sourc
ify
'
,
'fetchByNetwork'
,
contractAddress
,
name
.
toLowerCase
())
data
=
await
this
.
call
(
'sourc
e-verification
'
,
'fetchByNetwork'
,
contractAddress
,
name
.
toLowerCase
())
}
catch
(
e
)
{
setTimeout
(
_
=>
this
.
emit
(
'notFound'
,
contractAddress
),
0
)
// plugin framework returns a time out error although it actually didn't find the source...
this
.
unresolvedAddresses
.
push
(
contractAddress
)
...
...
src/app/tabs/debugger-tab.js
View file @
e30754b7
...
...
@@ -64,7 +64,7 @@ class DebuggerTab extends ViewPlugin {
}
)
this
.
call
(
'manager'
,
'activatePlugin'
,
'sourc
ify
'
)
this
.
call
(
'manager'
,
'activatePlugin'
,
'sourc
e-verification
'
)
// this.call('manager', 'activatePlugin', 'udapp')
return
this
.
el
...
...
src/app/tabs/debugger/debuggerUI/VmDebugger.js
View file @
e30754b7
...
...
@@ -16,11 +16,8 @@ var FullStoragesChangesPanel = require('./vmDebugger/FullStoragesChanges')
var
DropdownPanel
=
require
(
'./vmDebugger/DropdownPanel'
)
var
css
=
csjs
`
.asmCode {
width: 100%;
}
.stepDetail {
width: 10
0%;
line-height: 2
0%;
}
.vmheadView {
margin-top:10px;
...
...
@@ -127,19 +124,29 @@ function VmDebugger (vmDebuggerLogic) {
this
.
vmDebuggerLogic
.
event
.
register
(
'newCallTree'
,
()
=>
{
if
(
!
self
.
view
)
return
self
.
functionPanel
.
basicPanel
.
show
()
self
.
solidityLocals
.
basicPanel
.
show
()
self
.
solidityState
.
basicPanel
.
show
()
self
.
solidityPanel
.
hidden
=
false
})
this
.
vmDebuggerLogic
.
start
()
}
VmDebugger
.
prototype
.
renderHead
=
function
()
{
this
.
solidityPanel
=
yo
`
<div class="
${
css
.
solidityPanel
}
column w-100" hidden>
${
this
.
functionPanel
.
render
()}
${
this
.
solidityLocals
.
render
()}
${
this
.
solidityState
.
render
()}
</div>
`
const
headView
=
yo
`
<div id="vmheadView" class="
${
css
.
vmheadView
}
container">
<div class="row" >
<div class="
${
css
.
asmCode
}
column">
${
this
.
asmCode
.
render
()}
</div>
<div class="
${
css
.
stepDetail
}
column">
${
this
.
stepDetail
.
render
()}
</div>
${
this
.
solidityPanel
}
<div class="column w-100">
${
this
.
asmCode
.
render
()}
</div>
<div class="
${
css
.
stepDetail
}
column w-100">
${
this
.
stepDetail
.
render
()}
</div>
</div>
</div>
`
...
...
@@ -158,10 +165,7 @@ VmDebugger.prototype.render = function () {
const
view
=
yo
`
<div id="vmdebugger" class="pl-2">
<div>
${
this
.
solidityLocals
.
render
()}
${
this
.
solidityState
.
render
()}
${
this
.
stackPanel
.
render
()}
${
this
.
functionPanel
.
render
()}
${
this
.
memoryPanel
.
render
()}
${
this
.
storagePanel
.
render
()}
${
this
.
callstackPanel
.
render
()}
...
...
src/app/tabs/debugger/debuggerUI/vmDebugger/CodeListView.js
View file @
e30754b7
...
...
@@ -8,7 +8,7 @@ var csjs = require('csjs-inject')
var
css
=
csjs
`
.instructions {
overflow-y: scroll;
max-height: 1
5
0px;
max-height: 1
0
0px;
}
`
function
CodeListView
()
{
...
...
src/app/tabs/debugger/debuggerUI/vmDebugger/FunctionPanel.js
View file @
e30754b7
...
...
@@ -3,7 +3,7 @@ var DropdownPanel = require('./DropdownPanel')
var
yo
=
require
(
'yo-yo'
)
function
FunctionPanel
()
{
this
.
basicPanel
=
new
DropdownPanel
(
'Function'
,
{
json
:
true
,
displayContentOnly
:
false
})
this
.
basicPanel
=
new
DropdownPanel
(
'Function
Stack
'
,
{
json
:
true
,
displayContentOnly
:
false
})
}
FunctionPanel
.
prototype
.
update
=
function
(
calldata
)
{
...
...
src/app/ui/landing-page/landing-page.js
View file @
e30754b7
...
...
@@ -163,8 +163,8 @@ export class LandingPage extends ViewPlugin {
}
const
startSourceVerify
=
()
=>
{
this
.
appManager
.
ensureActivated
(
'solidity'
)
this
.
appManager
.
ensureActivated
(
'sourc
ify
'
)
this
.
verticalIcons
.
select
(
'sourc
ify
'
)
this
.
appManager
.
ensureActivated
(
'sourc
e-verification
'
)
this
.
verticalIcons
.
select
(
'sourc
e-verification
'
)
}
const
startPluginManager
=
()
=>
{
this
.
appManager
.
ensureActivated
(
'pluginManager'
)
...
...
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