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
eec30903
Commit
eec30903
authored
Dec 14, 2020
by
aniket-engg
Committed by
Aniket
Dec 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rdb bin updated
parent
7a8b0463
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
rdb
libs/remix-debug/bin/rdb
+9
-13
No files found.
libs/remix-debug/bin/rdb
View file @
eec30903
#!/usr/bin/env node
const
program
=
require
(
'commander'
)
const
version
=
require
(
'../package.json'
).
version
import
program
from
'commander'
import
{
compileStandardWrapper
}
from
'solc'
import
{
readFileSync
}
from
'fs'
import
{
start
}
from
'repl'
import
{
version
}
from
'../package.json'
import
{
CmdLine
}
from
'../src/cmdline/index'
program
.
command
(
'version'
)
...
...
@@ -25,14 +29,8 @@ program
.
option
(
'--node [url]'
,
'node to connect to'
)
.
parse
(
process
.
argv
)
const
CmdLine
=
require
(
'../src/cmdline/index'
)
const
solc
=
require
(
'solc'
)
const
fs
=
require
(
'fs'
)
const
filename
=
'test/sol/simple_storage.sol'
const
shortFilename
=
'simple_storage.sol'
const
inputJson
=
{
language
:
'Solidity'
,
sources
:
{
...
...
@@ -51,11 +49,11 @@ const inputJson = {
}
}
inputJson
.
sources
[
shortFilename
]
=
{
content
:
fs
.
readFileSync
(
filename
).
toString
()}
inputJson
.
sources
[
shortFilename
]
=
{
content
:
readFileSync
(
filename
).
toString
()}
console
.
log
(
'compiling...'
)
const
compilationData
=
JSON
.
parse
(
solc
.
compileStandardWrapper
(
JSON
.
stringify
(
inputJson
)))
const
compilationData
=
JSON
.
parse
(
compileStandardWrapper
(
JSON
.
stringify
(
inputJson
)))
const
compilation
=
{}
compilation
.
data
=
compilationData
compilation
.
source
=
{
sources
:
inputJson
.
sources
}
...
...
@@ -73,9 +71,7 @@ cmdLine.events.on('source', () => {
cmdLine
.
getSource
().
forEach
(
console
.
dir
)
})
const
repl
=
require
(
'repl'
)
repl
.
start
({
start
({
prompt
:
'> '
,
eval
:
(
cmd
,
context
,
filename
,
cb
)
=>
{
let
command
=
cmd
.
trim
()
...
...
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