|
|
@ -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: 100px; |
|
|
|
height: 20px; |
|
|
|
background: #fff6dd; |
|
|
|
border-color: #bebebe; |
|
|
|
border-color: #efece2; |
|
|
|
margin-bottom: 5px; |
|
|
|
} |
|
|
|
} |
|
|
|
.runButton { |
|
|
|
.runButton { |
|
|
|
width: 30ex; |
|
|
|
width: 30ex; |
|
|
@ -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) { |
|
|
|
}; |
|
|
|
}; |
|
|
|
var textRow = function(description, data) { |
|
|
|
var textRow = function(description, data) { |
|
|
|
return $('<div/>') |
|
|
|
return $('<div/>') |
|
|
|
.append($('<span class="col1">').text(description)) |
|
|
|
.append($('<strong 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) |
|
|
|