release 0.7.3

This commit is contained in:
CaiHQ
2023-06-06 18:00:48 +08:00
parent 76fce2d53b
commit 3e15dc9d07
3 changed files with 10 additions and 5 deletions

View File

@@ -15,13 +15,14 @@ public class CodeRepoTool {
}
public static void publish(String publishConfig) throws Exception {
public static void publish(String publishConfig, String ypkPath) throws Exception {
FileStorage storage = new FileStorage(publishConfig);
EndpointConfig endpointConfig = storage.loadAsEndpointConfig();
AuditIrpClient irpClient = new AuditIrpClient(endpointConfig);
JsonObject arg = storage.load();
CodeRepoClient client = new CodeRepoClient(arg.get("codeRepoId").getAsString(), irpClient, SM2KeyPair.fromJson(arg.toString()));
String ypkPath = arg.get("ypkPath").getAsString();
if (ypkPath == null)
ypkPath = arg.get("ypkPath").getAsString();
AtomicInteger result = new AtomicInteger(0);
client.createAndUpload(ypkPath, new CodeRepoClient.ProgressCallback() {
@Override
@@ -51,4 +52,8 @@ public class CodeRepoTool {
Thread.yield();
}
}
public static void publish(String publishConfig) throws Exception {
publish(publishConfig, null);
}
}

View File

@@ -157,7 +157,7 @@ public class SmartContractClientExt extends SmartContractClient {
@Override
public void onLogin(JsonObject obj) {
LOGGER.info(obj.toString());
// LOGGER.info(obj.toString());
isLoggedIn = true;
}