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
3ff4af38
Commit
3ff4af38
authored
May 20, 2018
by
serapath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CompileTab: refactor move code
parent
fd50e50d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
compile-tab.js
src/app/tabs/compile-tab.js
+14
-14
No files found.
src/app/tabs/compile-tab.js
View file @
3ff4af38
...
...
@@ -153,6 +153,20 @@ module.exports = class CompileTab {
${
self
.
_view
.
contractEl
}
${
self
.
_view
.
errorContainer
}
</div>`
const
help
=
{
'Assembly'
:
'Assembly opcodes describing the contract including corresponding solidity source code'
,
'Opcodes'
:
'Assembly opcodes describing the contract'
,
'Runtime Bytecode'
:
'Bytecode storing the state and being executed during normal contract call'
,
'bytecode'
:
'Bytecode being executed during contract creation'
,
'functionHashes'
:
'List of declared function and their corresponding hash'
,
'gasEstimates'
:
'Gas estimation for each function call'
,
'metadata'
:
'Contains all informations related to the compilation'
,
'metadataHash'
:
'Hash representing all metadata information'
,
'abi'
:
'ABI: describing all the functions (input/output params, scope, ...)'
,
'name'
:
'Name of the compiled contract'
,
'swarmLocation'
:
'Swarm url where all metadata information can be found (contract needs to be published first)'
,
'web3Deploy'
:
'Copy/paste this code to any JavaScript/Web3 console to deploy this contract'
}
function
updateAutoCompile
(
event
)
{
self
.
_opts
.
config
.
set
(
'autoCompile'
,
self
.
_view
.
autoCompile
.
checked
)
}
function
compile
(
event
)
{
self
.
_api
.
runCompiler
()
}
function
getContractNames
(
success
,
data
)
{
...
...
@@ -170,20 +184,6 @@ module.exports = class CompileTab {
self
.
_api
.
resetDapp
({})
}
}
const
help
=
{
'Assembly'
:
'Assembly opcodes describing the contract including corresponding solidity source code'
,
'Opcodes'
:
'Assembly opcodes describing the contract'
,
'Runtime Bytecode'
:
'Bytecode storing the state and being executed during normal contract call'
,
'bytecode'
:
'Bytecode being executed during contract creation'
,
'functionHashes'
:
'List of declared function and their corresponding hash'
,
'gasEstimates'
:
'Gas estimation for each function call'
,
'metadata'
:
'Contains all informations related to the compilation'
,
'metadataHash'
:
'Hash representing all metadata information'
,
'abi'
:
'ABI: describing all the functions (input/output params, scope, ...)'
,
'name'
:
'Name of the compiled contract'
,
'swarmLocation'
:
'Swarm url where all metadata information can be found (contract needs to be published first)'
,
'web3Deploy'
:
'Copy/paste this code to any JavaScript/Web3 console to deploy this contract'
}
function
details
()
{
const
select
=
self
.
_view
.
contractNames
if
(
select
.
children
.
length
>
0
&&
select
.
selectedIndex
>=
0
)
{
...
...
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