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

@ -5,7 +5,7 @@ plugins {
id 'signing' id 'signing'
} }
group "org.bdware.bdcontract" group "org.bdware.bdcontract"
version "0.7.2" version "0.7.3"
sourceCompatibility = 1.8 sourceCompatibility = 1.8
repositories { repositories {
mavenCentral() mavenCentral()
@ -20,7 +20,7 @@ dependencies {
implementation 'org.bouncycastle:bcprov-jdk15on:1.69' implementation 'org.bouncycastle:bcprov-jdk15on:1.69'
implementation 'org.apache.httpcomponents:httpclient:4.5.13' implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation 'org.apache.httpcomponents:httpmime:4.5.13' implementation 'org.apache.httpcomponents:httpmime:4.5.13'
implementation 'org.bdware.doip:bdosclient:0.0.6' implementation 'org.bdware.doip:bdosclient:0.0.7'
// implementation 'org.bdware.doip:doip-audit-tool:1.2.4' // implementation 'org.bdware.doip:doip-audit-tool:1.2.4'
testImplementation 'junit:junit:4.13.2' testImplementation 'junit:junit:4.13.2'
} }

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); FileStorage storage = new FileStorage(publishConfig);
EndpointConfig endpointConfig = storage.loadAsEndpointConfig(); EndpointConfig endpointConfig = storage.loadAsEndpointConfig();
AuditIrpClient irpClient = new AuditIrpClient(endpointConfig); AuditIrpClient irpClient = new AuditIrpClient(endpointConfig);
JsonObject arg = storage.load(); JsonObject arg = storage.load();
CodeRepoClient client = new CodeRepoClient(arg.get("codeRepoId").getAsString(), irpClient, SM2KeyPair.fromJson(arg.toString())); 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); AtomicInteger result = new AtomicInteger(0);
client.createAndUpload(ypkPath, new CodeRepoClient.ProgressCallback() { client.createAndUpload(ypkPath, new CodeRepoClient.ProgressCallback() {
@Override @Override
@ -51,4 +52,8 @@ public class CodeRepoTool {
Thread.yield(); 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 @Override
public void onLogin(JsonObject obj) { public void onLogin(JsonObject obj) {
LOGGER.info(obj.toString()); // LOGGER.info(obj.toString());
isLoggedIn = true; isLoggedIn = true;
} }