mirror of
https://gitee.com/BDWare/ypk-deploy-tool
synced 2026-01-29 08:09:27 +00:00
sync
This commit is contained in:
@@ -92,6 +92,7 @@ public class SmartContractClientExt extends SmartContractClient {
|
||||
}
|
||||
this.sendMsg(new Gson().toJson(ret));
|
||||
}
|
||||
|
||||
public void startContractAsDebug(String project, JsonElement createParam, ResultCallback rc) {
|
||||
String reqID = System.currentTimeMillis() + "";
|
||||
Map<String, Object> ret = new HashMap<>();
|
||||
@@ -291,6 +292,11 @@ public class SmartContractClientExt extends SmartContractClient {
|
||||
if (cb != null) cb.onResult(jo);
|
||||
}
|
||||
|
||||
@Action
|
||||
public void onStartContractAsDebug(JsonObject obj) {
|
||||
invokeCallback(obj);
|
||||
}
|
||||
|
||||
public void listProjects(boolean isPrivate, ResultCallback resultCallback) {
|
||||
JsonObject request = new JsonObject();
|
||||
request.addProperty("action", "listProjects");
|
||||
@@ -308,6 +314,7 @@ public class SmartContractClientExt extends SmartContractClient {
|
||||
if (cb != null) cb.onResult(jo);
|
||||
}
|
||||
|
||||
|
||||
@Action
|
||||
public void onKillContractProcess(JsonObject jo) {
|
||||
if (!jo.has("responseID")) {
|
||||
|
||||
@@ -27,4 +27,9 @@ public class EntryTest {
|
||||
public void deployBDTest() {
|
||||
HTTPTool.deploy("./testinput/deploy/router/GlobalRouter-023.json");
|
||||
}
|
||||
@Test
|
||||
public void deployShanxiProxy() {
|
||||
HTTPTool.deploy("./testinput/debugconf-shanxiproxy.json");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user