diff --git a/build.gradle b/build.gradle index 4cd14c7..e93465e 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { apply from: '../spotless.gradle' group = "org.bdware.sc" -version = "1.10.2" +version = "1.10.5" tasks.withType(JavaCompile) { // options.compilerArgs << '-Xlint:none' // options.compilerArgs << '-Xlint:deprecation' << "-Werror" @@ -45,14 +45,14 @@ dependencies { implementation 'com.atlassian.commonmark:commonmark:0.17.0' implementation 'com.idealista:format-preserving-encryption:1.0.0' implementation 'org.apache.commons:commons-math3:3.6.1' - implementation 'org.codehaus.groovy:groovy-all:3.0.8' + implementation 'org.codehaus.groovy:groovy-all:3.0.8' implementation 'io.grpc:grpc-all:1.64.0' implementation 'org.jsoup:jsoup:1.14.2' implementation 'com.sun.mail:javax.mail:1.6.2' implementation 'com.squareup.okhttp3:okhttp:4.9.1' implementation 'org.bdware.bdcontract:sdk-java:1.0.2' - implementation 'org.bdware.doip:doip-audit-tool:1.5.4' - implementation 'org.bdware.doip:doip-sdk:1.5.7' + implementation 'org.bdware.doip:doip-audit-tool:1.5.9' + implementation 'org.bdware.doip:doip-sdk:1.5.9' implementation 'org.apache.logging.log4j:log4j-layout-template-json:2.17.2' implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3' implementation fileTree(dir: 'lib', include: '*.jar') @@ -72,7 +72,7 @@ jar { // uncomment this when publish, // while develop at local use "false" configurations.runtimeClasspath.filter { - // it.getAbsolutePath().contains("/lib/") + // it.getAbsolutePath().contains("/lib/") false }.collect { it.isDirectory() ? it : zipTree(it) diff --git a/lib/bdledger-java-sdk-dev-221113-all.jar b/lib/bdledger-java-sdk-dev-221113-all.jar.backup similarity index 100% rename from lib/bdledger-java-sdk-dev-221113-all.jar rename to lib/bdledger-java-sdk-dev-221113-all.jar.backup diff --git a/lib/bdledger-java-sdk-dev-250321.jar b/lib/bdledger-java-sdk-dev-250321.jar new file mode 100644 index 0000000..4e46e4f Binary files /dev/null and b/lib/bdledger-java-sdk-dev-250321.jar differ diff --git a/src/test/java/org/bdware/sc/boundry/utils/test/LedgerUtilTest.java b/src/test/java/org/bdware/sc/boundry/utils/test/LedgerUtilTest.java index 91eebf3..19460e0 100644 --- a/src/test/java/org/bdware/sc/boundry/utils/test/LedgerUtilTest.java +++ b/src/test/java/org/bdware/sc/boundry/utils/test/LedgerUtilTest.java @@ -16,14 +16,14 @@ public class LedgerUtilTest { String ip = "39.104.202.92"; ip = "39.104.205.122"; ip = "39.104.201.40"; - Client c = new Client(ip, 21121); + Client c = new Client(ip, 2401); System.out.println(c.clientVersionSync().getVersion()); System.out.println(c.getLedgersSync().toString()); String from = "0xb60e8dd61c5d32be8058bb8eb970870f07233155"; - LedgerProto.SendTransactionResponse ret = - c.sendTransactionSync("bdcontract", CommonProto.TransactionType.MESSAGE, from, - System.currentTimeMillis(), from, "hello".getBytes(StandardCharsets.UTF_8)); - System.out.println("=====" + HashUtil.byteArray2Str(ret.getHash().toByteArray())); +// LedgerProto.SendTransactionResponse ret = +// c.sendTransactionSync("bdcontract", CommonProto.TransactionType.MESSAGE, from, +// System.currentTimeMillis(), from, "hello".getBytes(StandardCharsets.UTF_8)); +// System.out.println("=====" + HashUtil.byteArray2Str(ret.getHash().toByteArray())); } @Test @@ -41,6 +41,7 @@ public class LedgerUtilTest { str = "a114aa22365c2d61ee1c242c755d82c035783e41"; str = "d9be17b4287ed9a548901ef0e738f65f25dc7041"; str = "e90dbc995add64b26fa483b1b0ad7747b19ad579"; + str = "e62495f0f9c4fe07ff30974bc738b16618c59903"; byte[] bytes = ByteUtils.fromHexString(str); String hash = ByteUtil.encodeBASE64(bytes); System.out.println(URLEncoder.encode(hash));