update irpsdk

This commit is contained in:
CaiHQ 2025-06-10 11:25:37 +08:00
parent 533c92f843
commit 4087202c24
4 changed files with 11 additions and 10 deletions

View File

@ -8,7 +8,7 @@ plugins {
apply from: '../spotless.gradle' apply from: '../spotless.gradle'
group = "org.bdware.sc" group = "org.bdware.sc"
version = "1.10.2" version = "1.10.5"
tasks.withType(JavaCompile) { tasks.withType(JavaCompile) {
// options.compilerArgs << '-Xlint:none' // options.compilerArgs << '-Xlint:none'
// options.compilerArgs << '-Xlint:deprecation' << "-Werror" // options.compilerArgs << '-Xlint:deprecation' << "-Werror"
@ -45,14 +45,14 @@ dependencies {
implementation 'com.atlassian.commonmark:commonmark:0.17.0' implementation 'com.atlassian.commonmark:commonmark:0.17.0'
implementation 'com.idealista:format-preserving-encryption:1.0.0' implementation 'com.idealista:format-preserving-encryption:1.0.0'
implementation 'org.apache.commons:commons-math3:3.6.1' 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 'io.grpc:grpc-all:1.64.0'
implementation 'org.jsoup:jsoup:1.14.2' implementation 'org.jsoup:jsoup:1.14.2'
implementation 'com.sun.mail:javax.mail:1.6.2' implementation 'com.sun.mail:javax.mail:1.6.2'
implementation 'com.squareup.okhttp3:okhttp:4.9.1' implementation 'com.squareup.okhttp3:okhttp:4.9.1'
implementation 'org.bdware.bdcontract:sdk-java:1.0.2' implementation 'org.bdware.bdcontract:sdk-java:1.0.2'
implementation 'org.bdware.doip:doip-audit-tool:1.5.4' implementation 'org.bdware.doip:doip-audit-tool:1.5.9'
implementation 'org.bdware.doip:doip-sdk:1.5.7' implementation 'org.bdware.doip:doip-sdk:1.5.9'
implementation 'org.apache.logging.log4j:log4j-layout-template-json:2.17.2' implementation 'org.apache.logging.log4j:log4j-layout-template-json:2.17.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3' implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3'
implementation fileTree(dir: 'lib', include: '*.jar') implementation fileTree(dir: 'lib', include: '*.jar')
@ -72,7 +72,7 @@ jar {
// uncomment this when publish, // uncomment this when publish,
// while develop at local use "false" // while develop at local use "false"
configurations.runtimeClasspath.filter { configurations.runtimeClasspath.filter {
// it.getAbsolutePath().contains("/lib/") // it.getAbsolutePath().contains("/lib/")
false false
}.collect { }.collect {
it.isDirectory() ? it : zipTree(it) it.isDirectory() ? it : zipTree(it)

Binary file not shown.

View File

@ -16,14 +16,14 @@ public class LedgerUtilTest {
String ip = "39.104.202.92"; String ip = "39.104.202.92";
ip = "39.104.205.122"; ip = "39.104.205.122";
ip = "39.104.201.40"; 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.clientVersionSync().getVersion());
System.out.println(c.getLedgersSync().toString()); System.out.println(c.getLedgersSync().toString());
String from = "0xb60e8dd61c5d32be8058bb8eb970870f07233155"; String from = "0xb60e8dd61c5d32be8058bb8eb970870f07233155";
LedgerProto.SendTransactionResponse ret = // LedgerProto.SendTransactionResponse ret =
c.sendTransactionSync("bdcontract", CommonProto.TransactionType.MESSAGE, from, // c.sendTransactionSync("bdcontract", CommonProto.TransactionType.MESSAGE, from,
System.currentTimeMillis(), from, "hello".getBytes(StandardCharsets.UTF_8)); // System.currentTimeMillis(), from, "hello".getBytes(StandardCharsets.UTF_8));
System.out.println("=====" + HashUtil.byteArray2Str(ret.getHash().toByteArray())); // System.out.println("=====" + HashUtil.byteArray2Str(ret.getHash().toByteArray()));
} }
@Test @Test
@ -41,6 +41,7 @@ public class LedgerUtilTest {
str = "a114aa22365c2d61ee1c242c755d82c035783e41"; str = "a114aa22365c2d61ee1c242c755d82c035783e41";
str = "d9be17b4287ed9a548901ef0e738f65f25dc7041"; str = "d9be17b4287ed9a548901ef0e738f65f25dc7041";
str = "e90dbc995add64b26fa483b1b0ad7747b19ad579"; str = "e90dbc995add64b26fa483b1b0ad7747b19ad579";
str = "e62495f0f9c4fe07ff30974bc738b16618c59903";
byte[] bytes = ByteUtils.fromHexString(str); byte[] bytes = ByteUtils.fromHexString(str);
String hash = ByteUtil.encodeBASE64(bytes); String hash = ByteUtil.encodeBASE64(bytes);
System.out.println(URLEncoder.encode(hash)); System.out.println(URLEncoder.encode(hash));