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
f0dbdb9e
Commit
f0dbdb9e
authored
Jan 18, 2021
by
LianaHus
Committed by
ioedeveloper
Jan 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style fixes
parent
272c9057
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
108 additions
and
108 deletions
+108
-108
calldata-panel.tsx
...mix-ui/debugger-ui/src/lib/vm-debugger/calldata-panel.tsx
+6
-5
callstack-panel.tsx
...ix-ui/debugger-ui/src/lib/vm-debugger/callstack-panel.tsx
+6
-5
full-storages-changes.tsx
...debugger-ui/src/lib/vm-debugger/full-storages-changes.tsx
+6
-5
function-panel.tsx
...mix-ui/debugger-ui/src/lib/vm-debugger/function-panel.tsx
+9
-9
memory-panel.tsx
...remix-ui/debugger-ui/src/lib/vm-debugger/memory-panel.tsx
+4
-5
solidity-locals.tsx
...ix-ui/debugger-ui/src/lib/vm-debugger/solidity-locals.tsx
+49
-48
stack-panel.tsx
.../remix-ui/debugger-ui/src/lib/vm-debugger/stack-panel.tsx
+6
-7
step-detail.tsx
.../remix-ui/debugger-ui/src/lib/vm-debugger/step-detail.tsx
+6
-7
storage-panel.tsx
...emix-ui/debugger-ui/src/lib/vm-debugger/storage-panel.tsx
+6
-7
vm-debugger-head.tsx
...x-ui/debugger-ui/src/lib/vm-debugger/vm-debugger-head.tsx
+8
-8
vm-debugger.tsx
.../remix-ui/debugger-ui/src/lib/vm-debugger/vm-debugger.tsx
+2
-2
No files found.
libs/remix-ui/debugger-ui/src/lib/vm-debugger/calldata-panel.tsx
View file @
f0dbdb9e
...
@@ -2,11 +2,11 @@ import React from 'react'
...
@@ -2,11 +2,11 @@ import React from 'react'
import
DropdownPanel
from
'./dropdown-panel'
import
DropdownPanel
from
'./dropdown-panel'
export
const
CalldataPanel
=
({
calldata
})
=>
{
export
const
CalldataPanel
=
({
calldata
})
=>
{
return
(
return
(
<
div
id=
'calldatapanel'
>
<
div
id=
'calldatapanel'
>
<
DropdownPanel
dropdownName=
'Call Data'
calldata=
{
calldata
||
{}
}
/>
<
DropdownPanel
dropdownName=
'Call Data'
calldata=
{
calldata
||
{}
}
/>
</
div
>
</
div
>
)
)
}
}
export
default
CalldataPanel
export
default
CalldataPanel
\ No newline at end of file
libs/remix-ui/debugger-ui/src/lib/vm-debugger/callstack-panel.tsx
View file @
f0dbdb9e
...
@@ -2,11 +2,11 @@ import React from 'react'
...
@@ -2,11 +2,11 @@ import React from 'react'
import
DropdownPanel
from
'./dropdown-panel'
import
DropdownPanel
from
'./dropdown-panel'
export
const
CallstackPanel
=
({
calldata
})
=>
{
export
const
CallstackPanel
=
({
calldata
})
=>
{
return
(
return
(
<
div
id=
'callstackpanel'
>
<
div
id=
'callstackpanel'
>
<
DropdownPanel
dropdownName=
'Call Stack'
calldata=
{
calldata
||
{}
}
/>
<
DropdownPanel
dropdownName=
'Call Stack'
calldata=
{
calldata
||
{}
}
/>
</
div
>
</
div
>
)
)
}
}
export
default
CallstackPanel
export
default
CallstackPanel
\ No newline at end of file
libs/remix-ui/debugger-ui/src/lib/vm-debugger/full-storages-changes.tsx
View file @
f0dbdb9e
...
@@ -2,11 +2,11 @@ import React from 'react'
...
@@ -2,11 +2,11 @@ import React from 'react'
import
{
DropdownPanel
}
from
'./dropdown-panel'
import
{
DropdownPanel
}
from
'./dropdown-panel'
export
const
FullStoragesChanges
=
({
calldata
})
=>
{
export
const
FullStoragesChanges
=
({
calldata
})
=>
{
return
(
return
(
<
div
id=
'fullstorageschangespanel'
>
<
div
id=
'fullstorageschangespanel'
>
<
DropdownPanel
dropdownName=
'Full Storages Changes'
calldata=
{
calldata
||
{}
}
/>
<
DropdownPanel
dropdownName=
'Full Storages Changes'
calldata=
{
calldata
||
{}
}
/>
</
div
>
</
div
>
)
)
}
}
export
default
FullStoragesChanges
export
default
FullStoragesChanges
\ No newline at end of file
libs/remix-ui/debugger-ui/src/lib/vm-debugger/function-panel.tsx
View file @
f0dbdb9e
...
@@ -3,17 +3,17 @@ import DropdownPanel from './dropdown-panel'
...
@@ -3,17 +3,17 @@ import DropdownPanel from './dropdown-panel'
import
{
default
as
deepequal
}
from
'deep-equal'
import
{
default
as
deepequal
}
from
'deep-equal'
export
const
FunctionPanel
=
({
data
})
=>
{
export
const
FunctionPanel
=
({
data
})
=>
{
const
[
calldata
,
setCalldata
]
=
useState
(
null
)
const
[
calldata
,
setCalldata
]
=
useState
(
null
)
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
!
deepequal
(
calldata
,
data
))
setCalldata
(
data
)
if
(
!
deepequal
(
calldata
,
data
))
setCalldata
(
data
)
},
[
data
])
},
[
data
])
return
(
return
(
<
div
id=
"FunctionPanel"
>
<
div
id=
'FunctionPanel'
>
<
DropdownPanel
dropdownName=
'Function Stack'
calldata=
{
calldata
||
{}
}
/>
<
DropdownPanel
dropdownName=
'Function Stack'
calldata=
{
calldata
||
{}
}
/>
</
div
>
</
div
>
)
)
}
}
export
default
FunctionPanel
export
default
FunctionPanel
libs/remix-ui/debugger-ui/src/lib/vm-debugger/memory-panel.tsx
View file @
f0dbdb9e
...
@@ -2,9 +2,9 @@ import React from 'react'
...
@@ -2,9 +2,9 @@ import React from 'react'
import
DropdownPanel
from
'./dropdown-panel'
import
DropdownPanel
from
'./dropdown-panel'
export
const
MemoryPanel
=
({
calldata
})
=>
{
export
const
MemoryPanel
=
({
calldata
})
=>
{
return
(
return
(
<
DropdownPanel
dropdownName=
'Memory'
calldata=
{
calldata
||
{}
}
/>
<
DropdownPanel
dropdownName=
'Memory'
calldata=
{
calldata
||
{}
}
/>
)
)
}
}
export
default
MemoryPanel
export
default
MemoryPanel
\ No newline at end of file
libs/remix-ui/debugger-ui/src/lib/vm-debugger/solidity-locals.tsx
View file @
f0dbdb9e
...
@@ -4,59 +4,59 @@ import { extractData } from '../../utils/solidityTypeFormatter'
...
@@ -4,59 +4,59 @@ import { extractData } from '../../utils/solidityTypeFormatter'
import
{
ExtractData
}
from
'../../types'
import
{
ExtractData
}
from
'../../types'
export
const
SolidityLocals
=
({
data
,
message
,
registerEvent
,
triggerEvent
})
=>
{
export
const
SolidityLocals
=
({
data
,
message
,
registerEvent
,
triggerEvent
})
=>
{
const
[
calldata
,
setCalldata
]
=
useState
(
null
)
const
[
calldata
,
setCalldata
]
=
useState
(
null
)
useEffect
(()
=>
{
useEffect
(()
=>
{
data
&&
setCalldata
(
data
)
data
&&
setCalldata
(
data
)
},
[
data
])
},
[
data
])
const
formatSelf
=
(
key
:
string
,
data
:
ExtractData
)
=>
{
const
formatSelf
=
(
key
:
string
,
data
:
ExtractData
)
=>
{
let
color
=
'var(--primary)'
let
color
=
'var(--primary)'
if
(
data
.
isArray
||
data
.
isStruct
||
data
.
isMapping
)
{
if
(
data
.
isArray
||
data
.
isStruct
||
data
.
isMapping
)
{
color
=
'var(--info)'
color
=
'var(--info)'
}
else
if
(
}
else
if
(
data
.
type
.
indexOf
(
'uint'
)
===
0
||
data
.
type
.
indexOf
(
'uint'
)
===
0
||
data
.
type
.
indexOf
(
'int'
)
===
0
||
data
.
type
.
indexOf
(
'int'
)
===
0
||
data
.
type
.
indexOf
(
'bool'
)
===
0
||
data
.
type
.
indexOf
(
'bool'
)
===
0
||
data
.
type
.
indexOf
(
'enum'
)
===
0
data
.
type
.
indexOf
(
'enum'
)
===
0
)
{
)
{
color
=
'var(--green)'
color
=
'var(--green)'
}
else
if
(
data
.
type
===
'string'
)
{
}
else
if
(
data
.
type
===
'string'
)
{
color
=
'var(--teal)'
color
=
'var(--teal)'
}
else
if
(
data
.
self
==
0x0
)
{
// eslint-disable-line
}
else
if
(
data
.
self
==
0x0
)
{
// eslint-disable-line
color
=
'var(--gray)'
color
=
'var(--gray)'
}
}
if
(
data
.
type
===
'string'
)
{
if
(
data
.
type
===
'string'
)
{
data
.
self
=
JSON
.
stringify
(
data
.
self
)
data
.
self
=
JSON
.
stringify
(
data
.
self
)
}
return
(
<
label
className=
'mb-0'
style=
{
{
color
:
data
.
isProperty
?
'var(--info)'
:
''
,
whiteSpace
:
'pre-wrap'
}
}
>
{
' '
+
key
}
:
<
label
className=
'mb-0'
style=
{
{
color
}
}
>
{
' '
+
data
.
self
}
</
label
>
<
label
style=
{
{
fontStyle
:
'italic'
}
}
>
{
data
.
isProperty
||
!
data
.
type
?
''
:
' '
+
data
.
type
}
</
label
>
</
label
>
)
}
}
return
(
return
(
<
div
id=
'soliditylocals'
data
-
id=
"solidityLocals"
>
<
label
className=
'mb-0'
style=
{
{
color
:
data
.
isProperty
?
'var(--info)'
:
''
,
whiteSpace
:
'pre-wrap'
}
}
>
<
DropdownPanel
{
' '
+
key
}
:
dropdownName=
'Solidity Locals'
<
label
className=
'mb-0'
style=
{
{
color
}
}
>
dropdownMessage=
{
message
}
{
' '
+
data
.
self
}
calldata=
{
calldata
||
{}
}
</
label
>
extractFunc=
{
extractData
}
<
label
style=
{
{
fontStyle
:
'italic'
}
}
>
formatSelfFunc=
{
formatSelf
}
{
data
.
isProperty
||
!
data
.
type
?
''
:
' '
+
data
.
type
}
registerEvent=
{
registerEvent
}
</
label
>
triggerEvent=
{
triggerEvent
}
</
label
>
loadMoreEvent=
'solidityLocalsLoadMore'
loadMoreCompletedEvent=
'solidityLocalsLoadMoreCompleted'
/>
</
div
>
)
)
}
return
(
<
div
id=
'soliditylocals'
data
-
id=
"solidityLocals"
>
<
DropdownPanel
dropdownName=
'Solidity Locals'
dropdownMessage=
{
message
}
calldata=
{
calldata
||
{}
}
extractFunc=
{
extractData
}
formatSelfFunc=
{
formatSelf
}
registerEvent=
{
registerEvent
}
triggerEvent=
{
triggerEvent
}
loadMoreEvent=
'solidityLocalsLoadMore'
loadMoreCompletedEvent=
'solidityLocalsLoadMoreCompleted'
/>
</
div
>
)
}
}
export
default
SolidityLocals
export
default
SolidityLocals
\ No newline at end of file
libs/remix-ui/debugger-ui/src/lib/vm-debugger/stack-panel.tsx
View file @
f0dbdb9e
...
@@ -2,11 +2,11 @@ import React from 'react'
...
@@ -2,11 +2,11 @@ import React from 'react'
import
DropdownPanel
from
'./dropdown-panel'
import
DropdownPanel
from
'./dropdown-panel'
export
const
StackPanel
=
({
calldata
})
=>
{
export
const
StackPanel
=
({
calldata
})
=>
{
return
(
return
(
<
div
id=
"stackpanel"
>
<
div
id=
'stackpanel'
>
<
DropdownPanel
dropdownName=
'Stack'
calldata=
{
calldata
||
{}
}
/>
<
DropdownPanel
dropdownName=
'Stack'
calldata=
{
calldata
||
{}
}
/>
</
div
>
</
div
>
)
)
}
}
export
default
StackPanel
export
default
StackPanel
\ No newline at end of file
libs/remix-ui/debugger-ui/src/lib/vm-debugger/step-detail.tsx
View file @
f0dbdb9e
...
@@ -2,11 +2,11 @@ import React from 'react'
...
@@ -2,11 +2,11 @@ import React from 'react'
import
DropdownPanel
from
'./dropdown-panel'
import
DropdownPanel
from
'./dropdown-panel'
export
const
StepDetail
=
({
stepDetail
})
=>
{
export
const
StepDetail
=
({
stepDetail
})
=>
{
return
(
return
(
<
div
id=
'stepdetail'
data
-
id=
"stepdetail"
>
<
div
id=
'stepdetail'
data
-
id=
'stepdetail'
>
<
DropdownPanel
dropdownName=
'Step details'
calldata=
{
stepDetail
||
{}
}
/>
<
DropdownPanel
dropdownName=
'Step details'
calldata=
{
stepDetail
||
{}
}
/>
</
div
>
</
div
>
)
)
}
}
export
default
StepDetail
export
default
StepDetail
\ No newline at end of file
libs/remix-ui/debugger-ui/src/lib/vm-debugger/storage-panel.tsx
View file @
f0dbdb9e
...
@@ -2,11 +2,11 @@ import React from 'react'
...
@@ -2,11 +2,11 @@ import React from 'react'
import
DropdownPanel
from
'./dropdown-panel'
import
DropdownPanel
from
'./dropdown-panel'
export
const
StoragePanel
=
({
calldata
,
header
})
=>
{
export
const
StoragePanel
=
({
calldata
,
header
})
=>
{
return
(
return
(
<
div
id=
'storagepanel'
>
<
div
id=
'storagepanel'
>
<
DropdownPanel
dropdownName=
'Storage'
calldata=
{
calldata
||
{}
}
header=
{
header
}
/>
<
DropdownPanel
dropdownName=
'Storage'
calldata=
{
calldata
||
{}
}
header=
{
header
}
/>
</
div
>
</
div
>
)
)
}
}
export
default
StoragePanel
export
default
StoragePanel
\ No newline at end of file
libs/remix-ui/debugger-ui/src/lib/vm-debugger/vm-debugger-head.tsx
View file @
f0dbdb9e
...
@@ -17,18 +17,18 @@ export const VmDebuggerHead = ({ vmDebugger: { registerEvent, triggerEvent } })
...
@@ -17,18 +17,18 @@ export const VmDebuggerHead = ({ vmDebugger: { registerEvent, triggerEvent } })
})
})
const
[
solidityState
,
setSolidityState
]
=
useState
({
const
[
solidityState
,
setSolidityState
]
=
useState
({
calldata
:
null
,
calldata
:
null
,
message
:
null
,
message
:
null
})
})
const
[
solidityLocals
,
setSolidityLocals
]
=
useState
({
const
[
solidityLocals
,
setSolidityLocals
]
=
useState
({
calldata
:
null
,
calldata
:
null
,
message
:
null
,
message
:
null
})
})
useEffect
(()
=>
{
useEffect
(()
=>
{
registerEvent
&&
registerEvent
(
'functionsStackUpdate'
,
(
stack
)
=>
{
registerEvent
&&
registerEvent
(
'functionsStackUpdate'
,
(
stack
)
=>
{
if
(
stack
===
null
||
stack
.
length
===
0
)
return
if
(
stack
===
null
||
stack
.
length
===
0
)
return
const
functions
=
[]
const
functions
=
[]
for
(
const
func
of
stack
)
{
for
(
const
func
of
stack
)
{
functions
.
push
(
func
.
functionDefinition
.
name
+
'('
+
func
.
inputs
.
join
(
', '
)
+
')'
)
functions
.
push
(
func
.
functionDefinition
.
name
+
'('
+
func
.
inputs
.
join
(
', '
)
+
')'
)
}
}
...
@@ -97,15 +97,15 @@ export const VmDebuggerHead = ({ vmDebugger: { registerEvent, triggerEvent } })
...
@@ -97,15 +97,15 @@ export const VmDebuggerHead = ({ vmDebugger: { registerEvent, triggerEvent } })
},
[
registerEvent
])
},
[
registerEvent
])
return
(
return
(
<
div
id=
"vmheadView"
className=
"mt-1 px-0"
>
<
div
id=
'vmheadView'
className=
"mt-1 px-0"
>
<
div
className=
"d-flex flex-column"
>
<
div
className=
'd-flex flex-column'
>
<
div
className=
"w-100"
>
<
div
className=
'w-100'
>
<
FunctionPanel
data=
{
functionPanel
}
/>
<
FunctionPanel
data=
{
functionPanel
}
/>
<
SolidityLocals
data=
{
solidityLocals
.
calldata
}
message=
{
solidityLocals
.
message
}
registerEvent=
{
registerEvent
}
triggerEvent=
{
triggerEvent
}
/>
<
SolidityLocals
data=
{
solidityLocals
.
calldata
}
message=
{
solidityLocals
.
message
}
registerEvent=
{
registerEvent
}
triggerEvent=
{
triggerEvent
}
/>
<
SolidityState
calldata=
{
solidityState
.
calldata
}
message=
{
solidityState
.
message
}
/>
<
SolidityState
calldata=
{
solidityState
.
calldata
}
message=
{
solidityState
.
message
}
/>
</
div
>
</
div
>
<
div
className=
"w-100"
><
CodeListView
registerEvent=
{
registerEvent
}
/></
div
>
<
div
className=
'w-100'
><
CodeListView
registerEvent=
{
registerEvent
}
/></
div
>
<
div
className=
"w-100"
><
StepDetail
stepDetail=
{
stepDetail
}
/></
div
>
<
div
className=
'w-100'
><
StepDetail
stepDetail=
{
stepDetail
}
/></
div
>
</
div
>
</
div
>
</
div
>
</
div
>
)
)
...
...
libs/remix-ui/debugger-ui/src/lib/vm-debugger/vm-debugger.tsx
View file @
f0dbdb9e
...
@@ -51,14 +51,14 @@ export const VmDebugger = ({ vmDebugger: { registerEvent } }) => {
...
@@ -51,14 +51,14 @@ export const VmDebugger = ({ vmDebugger: { registerEvent } }) => {
},
[
registerEvent
])
},
[
registerEvent
])
return
(
return
(
<
div
id=
"vmdebugger"
className=
"px-2"
>
<
div
id=
'vmdebugger'
className=
"px-2"
>
<
div
>
<
div
>
<
StackPanel
calldata=
{
stackPanel
}
/>
<
StackPanel
calldata=
{
stackPanel
}
/>
<
MemoryPanel
calldata=
{
memoryPanel
}
/>
<
MemoryPanel
calldata=
{
memoryPanel
}
/>
<
StoragePanel
calldata=
{
storagePanel
.
calldata
}
header=
{
storagePanel
.
header
}
/>
<
StoragePanel
calldata=
{
storagePanel
.
calldata
}
header=
{
storagePanel
.
header
}
/>
<
CallstackPanel
calldata=
{
callStackPanel
}
/>
<
CallstackPanel
calldata=
{
callStackPanel
}
/>
<
CalldataPanel
calldata=
{
calldataPanel
}
/>
<
CalldataPanel
calldata=
{
calldataPanel
}
/>
<
ReturnValuesPanel
dropdownName=
"Return Value"
calldata=
{
returnValuesPanel
||
{}
}
/>
<
ReturnValuesPanel
dropdownName=
'Return Value'
calldata=
{
returnValuesPanel
||
{}
}
/>
<
FullStoragesChangesPanel
calldata=
{
fullStoragesChangesPanel
}
/>
<
FullStoragesChangesPanel
calldata=
{
fullStoragesChangesPanel
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
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