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
3e7477d0
Commit
3e7477d0
authored
Dec 15, 2020
by
aniket-engg
Committed by
Aniket
Dec 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build bug fixed
parent
a9e1b5b6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
67 deletions
+67
-67
index.ts
libs/remix-debug/src/index.ts
+1
-1
init.ts
libs/remix-debug/src/init.ts
+63
-64
RefType.ts
libs/remix-debug/src/solidity-decoder/types/RefType.ts
+1
-1
tsconfig.lib.json
libs/remix-debug/tsconfig.lib.json
+2
-1
No files found.
libs/remix-debug/src/index.ts
View file @
3e7477d0
'use strict'
import
init
from
'./init'
import
*
as
init
from
'./init'
import
{
Ethdebugger
as
EthDebugger
}
from
'./Ethdebugger'
import
{
Debugger
as
TransactionDebugger
}
from
'./debugger/debugger'
import
{
CmdLine
}
from
'./cmdline'
...
...
libs/remix-debug/src/init.ts
View file @
3e7477d0
'use strict'
import
Web3
from
'web3'
export
=
{
loadWeb3
:
function
(
url
)
{
if
(
!
url
)
url
=
'http://localhost:8545'
const
web3
=
new
Web3
()
web3
.
setProvider
(
new
Web3
.
providers
.
HttpProvider
(
url
))
this
.
extend
(
web3
)
return
web3
},
export
function
loadWeb3
(
url
)
{
if
(
!
url
)
url
=
'http://localhost:8545'
const
web3
=
new
Web3
()
web3
.
setProvider
(
new
Web3
.
providers
.
HttpProvider
(
url
))
extend
(
web3
)
return
web3
}
extendWeb3
:
function
(
web3
)
{
this
.
extend
(
web3
)
},
export
function
extendWeb3
(
web3
)
{
extend
(
web3
)
}
setProvider
:
function
(
web3
,
url
)
{
web3
.
setProvider
(
new
web3
.
providers
.
HttpProvider
(
url
))
},
export
function
setProvider
(
web3
,
url
)
{
web3
.
setProvider
(
new
web3
.
providers
.
HttpProvider
(
url
))
}
web3DebugNode
:
function
(
network
)
{
const
web3DebugNodes
=
{
'Main'
:
'https://rpc.archivenode.io/e50zmkroshle2e2e50zm0044i7ao04ym'
,
'Rinkeby'
:
'https://remix-rinkeby.ethdevops.io'
,
'Ropsten'
:
'https://remix-ropsten.ethdevops.io'
,
'Goerli'
:
'https://remix-goerli.ethdevops.io'
,
'Kovan'
:
'https://remix-kovan.ethdevops.io'
}
if
(
web3DebugNodes
[
network
])
{
return
this
.
loadWeb3
(
web3DebugNodes
[
network
])
}
return
null
},
export
function
web3DebugNode
(
network
)
{
const
web3DebugNodes
=
{
'Main'
:
'https://rpc.archivenode.io/e50zmkroshle2e2e50zm0044i7ao04ym'
,
'Rinkeby'
:
'https://remix-rinkeby.ethdevops.io'
,
'Ropsten'
:
'https://remix-ropsten.ethdevops.io'
,
'Goerli'
:
'https://remix-goerli.ethdevops.io'
,
'Kovan'
:
'https://remix-kovan.ethdevops.io'
}
if
(
web3DebugNodes
[
network
])
{
return
loadWeb3
(
web3DebugNodes
[
network
])
}
return
null
}
extend
:
function
(
web3
)
{
if
(
!
web3
.
extend
)
{
return
}
// DEBUG
const
methods
=
[]
if
(
!
(
web3
.
debug
&&
web3
.
debug
.
preimage
))
{
methods
.
push
(
new
web3
.
extend
.
Method
({
name
:
'preimage'
,
call
:
'debug_preimage'
,
inputFormatter
:
[
null
],
params
:
1
}))
}
export
function
extend
(
web3
)
{
if
(
!
web3
.
extend
)
{
return
}
// DEBUG
const
methods
=
[]
if
(
!
(
web3
.
debug
&&
web3
.
debug
.
preimage
))
{
methods
.
push
(
new
web3
.
extend
.
Method
({
name
:
'preimage'
,
call
:
'debug_preimage'
,
inputFormatter
:
[
null
],
params
:
1
}))
}
if
(
!
(
web3
.
debug
&&
web3
.
debug
.
traceTransaction
))
{
methods
.
push
(
new
web3
.
extend
.
Method
({
name
:
'traceTransaction'
,
call
:
'debug_traceTransaction'
,
inputFormatter
:
[
null
,
null
],
params
:
2
}))
}
if
(
!
(
web3
.
debug
&&
web3
.
debug
.
traceTransaction
))
{
methods
.
push
(
new
web3
.
extend
.
Method
({
name
:
'traceTransaction'
,
call
:
'debug_traceTransaction'
,
inputFormatter
:
[
null
,
null
],
params
:
2
}))
}
if
(
!
(
web3
.
debug
&&
web3
.
debug
.
storageRangeAt
))
{
methods
.
push
(
new
web3
.
extend
.
Method
({
name
:
'storageRangeAt'
,
call
:
'debug_storageRangeAt'
,
inputFormatter
:
[
null
,
null
,
null
,
null
,
null
],
params
:
5
}))
}
if
(
methods
.
length
>
0
)
{
web3
.
extend
({
property
:
'debug'
,
methods
:
methods
,
properties
:
[]
})
}
if
(
!
(
web3
.
debug
&&
web3
.
debug
.
storageRangeAt
))
{
methods
.
push
(
new
web3
.
extend
.
Method
({
name
:
'storageRangeAt'
,
call
:
'debug_storageRangeAt'
,
inputFormatter
:
[
null
,
null
,
null
,
null
,
null
],
params
:
5
}))
}
if
(
methods
.
length
>
0
)
{
web3
.
extend
({
property
:
'debug'
,
methods
:
methods
,
properties
:
[]
})
}
}
libs/remix-debug/src/solidity-decoder/types/RefType.ts
View file @
3e7477d0
...
...
@@ -32,7 +32,7 @@ export class RefType {
}
let
offset
=
stack
[
stack
.
length
-
1
-
stackDepth
]
if
(
this
.
isInStorage
())
{
offset
=
util
.
toBN
(
offset
)
offset
=
toBN
(
offset
)
try
{
return
await
this
.
decodeFromStorage
({
offset
:
0
,
slot
:
offset
},
storageResolver
)
}
catch
(
e
)
{
...
...
libs/remix-debug/tsconfig.lib.json
View file @
3e7477d0
...
...
@@ -10,7 +10,8 @@
},
"exclude"
:
[
"**/*.spec.js"
,
"test/"
"test/"
,
"test.ts"
],
"include"
:
[
"**/*.ts"
]
}
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