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
1b2ce7bb
Commit
1b2ce7bb
authored
Dec 15, 2020
by
aniket-engg
Committed by
Aniket
Dec 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trace import updated
parent
5d818814
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
18 deletions
+15
-18
traceAnalyser.ts
libs/remix-debug/src/trace/traceAnalyser.ts
+1
-1
traceCache.ts
libs/remix-debug/src/trace/traceCache.ts
+3
-3
traceHelper.ts
libs/remix-debug/src/trace/traceHelper.ts
+1
-1
traceManager.ts
libs/remix-debug/src/trace/traceManager.ts
+6
-8
traceStepManager.ts
libs/remix-debug/src/trace/traceStepManager.ts
+4
-5
No files found.
libs/remix-debug/src/trace/traceAnalyser.ts
View file @
1b2ce7bb
'use strict'
'use strict'
const
traceHelper
=
require
(
'./traceHelper'
)
import
*
as
traceHelper
from
'./traceHelper'
export
class
TraceAnalyser
{
export
class
TraceAnalyser
{
...
...
libs/remix-debug/src/trace/traceCache.ts
View file @
1b2ce7bb
'use strict'
'use strict'
const
remixLib
=
require
(
'@remix-project/remix-lib'
)
import
{
util
}
from
'@remix-project/remix-lib'
const
helper
=
remixLib
.
util
const
{
sha3_256
}
=
util
export
class
TraceCache
{
export
class
TraceCache
{
...
@@ -105,7 +105,7 @@ export class TraceCache {
...
@@ -105,7 +105,7 @@ export class TraceCache {
'address'
:
address
,
'address'
:
address
,
'key'
:
key
,
'key'
:
key
,
'value'
:
value
,
'value'
:
value
,
'hashedKey'
:
helper
.
sha3_256
(
key
)
'hashedKey'
:
sha3_256
(
key
)
}
}
this
.
storageChanges
.
push
(
index
)
this
.
storageChanges
.
push
(
index
)
}
}
...
...
libs/remix-debug/src/trace/traceHelper.ts
View file @
1b2ce7bb
'use strict'
'use strict'
import
{
helpers
}
from
'@remix-project/remix-lib'
import
{
helpers
}
from
'@remix-project/remix-lib'
const
ui
=
helpers
.
ui
const
{
ui
}
=
helpers
// vmTraceIndex has to point to a CALL, CODECALL, ...
// vmTraceIndex has to point to a CALL, CODECALL, ...
export
function
resolveCalledAddress
(
vmTraceIndex
,
trace
)
{
export
function
resolveCalledAddress
(
vmTraceIndex
,
trace
)
{
...
...
libs/remix-debug/src/trace/traceManager.ts
View file @
1b2ce7bb
'use strict'
'use strict'
const
TraceAnalyser
=
require
(
'./traceAnalyser'
)
import
{
TraceAnalyser
}
from
'./traceAnalyser'
const
TraceCache
=
require
(
'./traceCache'
)
import
{
TraceCache
}
from
'./traceCache'
const
TraceStepManager
=
require
(
'./traceStepManager'
)
import
{
TraceStepManager
}
from
'./traceStepManager'
import
{
isCreateInstruction
}
from
'./traceHelper'
const
traceHelper
=
require
(
'./traceHelper'
)
import
{
util
}
from
'@remix-project/remix-lib'
const
remixLib
=
require
(
'@remix-project/remix-lib'
)
const
util
=
remixLib
.
util
export
class
TraceManager
{
export
class
TraceManager
{
...
@@ -241,7 +239,7 @@ export class TraceManager {
...
@@ -241,7 +239,7 @@ export class TraceManager {
}
}
isCreationStep
(
stepIndex
)
{
isCreationStep
(
stepIndex
)
{
return
traceHelper
.
isCreateInstruction
(
this
.
trace
[
stepIndex
])
return
isCreateInstruction
(
this
.
trace
[
stepIndex
])
}
}
// step section
// step section
...
...
libs/remix-debug/src/trace/traceStepManager.ts
View file @
1b2ce7bb
'use strict'
'use strict'
const
traceHelper
=
require
(
'./traceHelper'
)
import
{
isCallInstruction
,
isCallToPrecompiledContract
,
isReturnInstruction
}
from
'./traceHelper'
const
remixLib
=
require
(
'@remix-project/remix-lib'
)
import
{
util
}
from
'@remix-project/remix-lib'
const
util
=
remixLib
.
util
export
class
TraceStepManager
{
export
class
TraceStepManager
{
...
@@ -14,12 +13,12 @@ export class TraceStepManager {
...
@@ -14,12 +13,12 @@ export class TraceStepManager {
isCallInstruction
(
index
)
{
isCallInstruction
(
index
)
{
const
state
=
this
.
traceAnalyser
.
trace
[
index
]
const
state
=
this
.
traceAnalyser
.
trace
[
index
]
return
traceHelper
.
isCallInstruction
(
state
)
&&
!
traceHelper
.
isCallToPrecompiledContract
(
index
,
this
.
traceAnalyser
.
trace
)
return
isCallInstruction
(
state
)
&&
!
isCallToPrecompiledContract
(
index
,
this
.
traceAnalyser
.
trace
)
}
}
isReturnInstruction
(
index
)
{
isReturnInstruction
(
index
)
{
const
state
=
this
.
traceAnalyser
.
trace
[
index
]
const
state
=
this
.
traceAnalyser
.
trace
[
index
]
return
traceHelper
.
isReturnInstruction
(
state
)
return
isReturnInstruction
(
state
)
}
}
findStepOverBack
(
currentStep
)
{
findStepOverBack
(
currentStep
)
{
...
...
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