Compare commits
5 Commits
89360bbf0c
...
v1.6.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cdcdfbdfde | ||
|
|
d0f8af9851 | ||
|
|
965ee67409 | ||
|
|
0dfa8a555a | ||
|
|
37476bd506 |
@@ -282,6 +282,7 @@
|
||||
<option value="5">RARA</option>
|
||||
<option value="6">Sharding</option>
|
||||
<option value="7">SASharding</option>
|
||||
<option value="8">PBFT</option>
|
||||
</select>
|
||||
<div class="btn-group mr-3" role="group"
|
||||
style="margin-left: 2%">
|
||||
@@ -1339,6 +1340,7 @@
|
||||
//initWSocket();
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
Binary file not shown.
9214
jqueryui1.12/jquery-2.1.4.js
vendored
Executable file → Normal file
9214
jqueryui1.12/jquery-2.1.4.js
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
@@ -398,14 +398,14 @@ function executeContract() {
|
||||
request.pubkey = global.sm2Key.publicKey;
|
||||
request.isDebug = executeContractAsDebug.checked;
|
||||
console.log(request.arg);
|
||||
const gasLimit = $('#gasLimit').val()/1;
|
||||
const gasLimit = $('#gasLimit').val() / 1;
|
||||
var toSign = request.contractID + "|"
|
||||
+ request.operation + "|" + arg ;
|
||||
if (gasLimit>0){
|
||||
request.gasLimit = gasLimit;
|
||||
toSign+= "|" + gasLimit;
|
||||
+ request.operation + "|" + request.arg;
|
||||
if (gasLimit > 0) {
|
||||
request.gasLimit = gasLimit;
|
||||
toSign += "|" + gasLimit;
|
||||
}
|
||||
toSign+= "|" + global.sm2Key.publicKey;
|
||||
toSign += "|" + global.sm2Key.publicKey;
|
||||
request.signature = sm2.doSignature(
|
||||
toSign,
|
||||
global.sm2Key.privateKey,
|
||||
@@ -431,9 +431,9 @@ function onExecuteResult(obj) {
|
||||
$("#responseArea")[0].value = result.result;
|
||||
}
|
||||
$("#responseID").html(`请求ID:${obj['responseID']}`);
|
||||
var gasInfo="";
|
||||
if (obj.executionGas!=undefined && obj.executionGas>0)
|
||||
gasInfo="<br>"+obj.executionGas+"gas";
|
||||
var gasInfo = "";
|
||||
if (obj.executionGas != undefined && obj.executionGas > 0)
|
||||
gasInfo = "<br>" + obj.executionGas + "gas";
|
||||
$("#responseTime").html(`响应时间:${obj['executeTime']}ms${gasInfo}${styleTail}`);
|
||||
} catch (e) {
|
||||
$("#responseStatus").html("执行状态:Failed");
|
||||
@@ -461,12 +461,12 @@ function getMask() {
|
||||
console.log(request.arg);
|
||||
//const gasLimit = $('#gasLimit').val()/1;
|
||||
var toSign = request.contractID + "|"
|
||||
+ request.operation + "|" + arg ;
|
||||
+ request.operation + "|" + arg;
|
||||
/*if (gasLimit>0){
|
||||
request.gasLimit = gasLimit;
|
||||
toSign+= "|" + gasLimit;
|
||||
}*/
|
||||
toSign+= "|" + global.sm2Key.publicKey;
|
||||
toSign += "|" + global.sm2Key.publicKey;
|
||||
request.signature = sm2.doSignature(
|
||||
toSign,
|
||||
global.sm2Key.privateKey,
|
||||
@@ -474,6 +474,7 @@ function getMask() {
|
||||
localStorage.setItem("persisArg", JSON.stringify(request));
|
||||
global.wssocket.send(JSON.stringify(request));
|
||||
}
|
||||
|
||||
function setMask() {
|
||||
const argDiv = $('#maskArg')[0];
|
||||
const request = {};
|
||||
@@ -492,12 +493,12 @@ function setMask() {
|
||||
console.log(request.arg);
|
||||
//const gasLimit = $('#gasLimit').val()/1;
|
||||
var toSign = request.contractID + "|"
|
||||
+ request.operation + "|" + arg ;
|
||||
+ request.operation + "|" + arg;
|
||||
/*if (gasLimit>0){
|
||||
request.gasLimit = gasLimit;
|
||||
toSign+= "|" + gasLimit;
|
||||
}*/
|
||||
toSign+= "|" + global.sm2Key.publicKey;
|
||||
toSign += "|" + global.sm2Key.publicKey;
|
||||
request.signature = sm2.doSignature(
|
||||
toSign,
|
||||
global.sm2Key.privateKey,
|
||||
@@ -535,12 +536,12 @@ function getMock() {
|
||||
console.log(request.arg);
|
||||
//const gasLimit = $('#gasLimit').val()/1;
|
||||
var toSign = request.contractID + "|"
|
||||
+ request.operation + "|" + arg ;
|
||||
+ request.operation + "|" + arg;
|
||||
/*if (gasLimit>0){
|
||||
request.gasLimit = gasLimit;
|
||||
toSign+= "|" + gasLimit;
|
||||
}*/
|
||||
toSign+= "|" + global.sm2Key.publicKey;
|
||||
toSign += "|" + global.sm2Key.publicKey;
|
||||
request.signature = sm2.doSignature(
|
||||
toSign,
|
||||
global.sm2Key.privateKey,
|
||||
@@ -567,12 +568,12 @@ function setMock() {
|
||||
console.log(request.arg);
|
||||
//const gasLimit = $('#gasLimit').val()/1;
|
||||
var toSign = request.contractID + "|"
|
||||
+ request.operation + "|" + arg ;
|
||||
+ request.operation + "|" + arg;
|
||||
/*if (gasLimit>0){
|
||||
request.gasLimit = gasLimit;
|
||||
toSign+= "|" + gasLimit;
|
||||
}*/
|
||||
toSign+= "|" + global.sm2Key.publicKey;
|
||||
toSign += "|" + global.sm2Key.publicKey;
|
||||
request.signature = sm2.doSignature(
|
||||
toSign,
|
||||
global.sm2Key.privateKey,
|
||||
|
||||
@@ -174,7 +174,7 @@ function importContractInstanceCodeByDOI() {
|
||||
|
||||
function openInClient() {
|
||||
let path = document.location.pathname.lastIndexOf("/ide");
|
||||
if (path>0)
|
||||
if (path > 0)
|
||||
path = document.location.pathname.substr(0, path + 1);
|
||||
else path = "/";
|
||||
window.open(isBaaS ?
|
||||
@@ -222,15 +222,15 @@ function executeContract() {
|
||||
request.contractID = contract.id;
|
||||
request.operation = contract.exportedFunctions[selectedFunction.value].functionName;
|
||||
const arg = executeContractArgInput.value;
|
||||
const gasLimit = $('#gasLimit').val()/1;
|
||||
const gasLimit = $('#gasLimit').val() / 1;
|
||||
request.pubkey = sm2Key.publicKey;
|
||||
var toSign = request.contractID + "|"
|
||||
+ request.operation + "|" + arg ;
|
||||
if (gasLimit>0){
|
||||
request.gasLimit = gasLimit;
|
||||
toSign+= "|" + gasLimit;
|
||||
let toSign = request.contractID + "|"
|
||||
+ request.operation + "|" + arg;
|
||||
if (gasLimit > 0) {
|
||||
request.gasLimit = gasLimit;
|
||||
toSign += "|" + gasLimit;
|
||||
}
|
||||
toSign+= "|" + sm2Key.publicKey;
|
||||
toSign += "|" + sm2Key.publicKey;
|
||||
request.signature = sm2.doSignature(
|
||||
toSign,
|
||||
sm2Key.privateKey,
|
||||
|
||||
Reference in New Issue
Block a user