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
20ff4d64
Commit
20ff4d64
authored
Jul 22, 2015
by
Alexandre Van de Sande
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resized instructions pane, moved solidity interface into 'details'
parent
b82177ea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
index.html
index.html
+12
-7
No files found.
index.html
View file @
20ff4d64
...
@@ -56,13 +56,18 @@ body {
...
@@ -56,13 +56,18 @@ body {
width
:
18ex
;
width
:
18ex
;
display
:
inline-block
;
display
:
inline-block
;
}
}
strong
.col1
{
top
:
-10px
;
position
:
relative
;
margin-bottom
:
5px
;
}
.col2
{
.col2
{
width
:
60ex
;
width
:
60ex
;
}
}
textarea
.col2
{
textarea
.col2
{
height
:
10
0px
;
height
:
2
0px
;
b
ackground
:
#fff6dd
;
b
order-color
:
#bebebe
;
border-color
:
#efece2
;
margin-bottom
:
5px
;
}
}
.runButton
{
.runButton
{
width
:
30ex
;
width
:
30ex
;
...
@@ -253,8 +258,7 @@ var renderContracts = function(data, source) {
...
@@ -253,8 +258,7 @@ var renderContracts = function(data, source) {
.
append
(
$
(
'<div/>'
).
text
((
contract
.
bytecode
.
length
/
2
)
+
' bytes'
))
.
append
(
$
(
'<div/>'
).
text
((
contract
.
bytecode
.
length
/
2
)
+
' bytes'
))
.
append
(
tableRow
(
'Bytecode'
,
contract
.
bytecode
))
.
append
(
tableRow
(
'Bytecode'
,
contract
.
bytecode
))
.
append
(
tableRow
(
'Interface'
,
contract
[
'interface'
]))
.
append
(
tableRow
(
'Interface'
,
contract
[
'interface'
]))
.
append
(
tableRow
(
'Solidity Interface'
,
contract
.
solidity_interface
))
.
append
(
textRow
(
'Geth deploy'
,
gethDeploy
(
contractName
,
contract
[
'interface'
],
contract
.
bytecode
)))
.
append
(
textRow
(
'Deploy Instructions'
,
gethDeploy
(
contractName
,
contract
[
'interface'
],
contract
.
bytecode
)))
.
append
(
getDetails
(
contract
,
source
,
contractName
));
.
append
(
getDetails
(
contract
,
source
,
contractName
));
$
(
'#output'
).
append
(
contractOutput
);
$
(
'#output'
).
append
(
contractOutput
);
}
}
...
@@ -266,12 +270,13 @@ var tableRow = function(description, data) {
...
@@ -266,12 +270,13 @@ var tableRow = function(description, data) {
};
};
var
textRow
=
function
(
description
,
data
)
{
var
textRow
=
function
(
description
,
data
)
{
return
$
(
'<div/>'
)
return
$
(
'<div/>'
)
.
append
(
$
(
'<s
pan
class="col1">'
).
text
(
description
))
.
append
(
$
(
'<s
trong
class="col1">'
).
text
(
description
))
.
append
(
$
(
'<textarea
readonly="readonly"
class="col2" onclick="this.select()">'
+
data
+
"</textarea>"
));
.
append
(
$
(
'<textarea class="col2" onclick="this.select()">'
+
data
+
"</textarea>"
));
};
};
var
getDetails
=
function
(
contract
,
source
,
contractName
)
{
var
getDetails
=
function
(
contract
,
source
,
contractName
)
{
var
button
=
$
(
'<button>Details</button>'
);
var
button
=
$
(
'<button>Details</button>'
);
var
details
=
$
(
'<div style="display: none;"/>'
)
var
details
=
$
(
'<div style="display: none;"/>'
)
.
append
(
tableRow
(
'Solidity Interface'
,
contract
.
solidity_interface
))
.
append
(
tableRow
(
'Opcodes'
,
contract
.
opcodes
));
.
append
(
tableRow
(
'Opcodes'
,
contract
.
opcodes
));
var
funHashes
=
''
;
var
funHashes
=
''
;
for
(
var
fun
in
contract
.
functionHashes
)
for
(
var
fun
in
contract
.
functionHashes
)
...
...
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