Skip to content

Commit f3b065a

Browse files
committed
pull interface up “
1 parent d9c10d6 commit f3b065a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

sdk-transaction/src/main/java/org/fisco/bcos/sdk/transaction/manager/TransactionProcessor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public TransactionReceipt sendTransactionAndGetReceipt(
7575
}
7676
}
7777

78+
@Override
7879
public TransactionReceipt sendTransactionAndGetReceipt(String to, String data) {
7980
return sendTransactionAndGetReceipt(to, data, this.cryptoKeyPair);
8081
}
@@ -90,6 +91,7 @@ public void sendTransactionAsync(
9091
createSignedTransaction(to, data, cryptoKeyPair), callback);
9192
}
9293

94+
@Override
9395
public void sendTransactionAsync(String to, String data, TransactionCallback callback) {
9496
sendTransactionAsync(to, data, this.cryptoKeyPair, callback);
9597
}
@@ -108,6 +110,7 @@ public byte[] sendTransactionAsyncAndGetHash(
108110
return transactionHash;
109111
}
110112

113+
@Override
111114
public byte[] sendTransactionAsyncAndGetHash(
112115
String to, String data, TransactionCallback callback) {
113116
return sendTransactionAsyncAndGetHash(to, data, this.cryptoKeyPair, callback);
@@ -142,6 +145,7 @@ public String createSignedTransaction(String to, String data, CryptoKeyPair cryp
142145
return transactionEncoder.encodeAndSign(rawTransaction, cryptoKeyPair);
143146
}
144147

148+
@Override
145149
public String createSignedTransaction(String to, String data) {
146150
return createSignedTransaction(to, data, this.cryptoKeyPair);
147151
}

sdk-transaction/src/main/java/org/fisco/bcos/sdk/transaction/manager/TransactionProcessorInterface.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public interface TransactionProcessorInterface {
3838
public TransactionReceipt sendTransactionAndGetReceipt(
3939
String to, String data, CryptoKeyPair cryptoKeyPair);
4040

41+
public TransactionReceipt sendTransactionAndGetReceipt(String to, String data);
42+
4143
/**
4244
* send transaction to fisco bcos node and get transaction receipt asynchronously.
4345
*
@@ -49,8 +51,14 @@ public TransactionReceipt sendTransactionAndGetReceipt(
4951
public void sendTransactionAsync(
5052
String to, String data, CryptoKeyPair cryptoKeyPair, TransactionCallback callback);
5153

54+
public void sendTransactionAsync(String to, String data, TransactionCallback callback);
55+
5256
public byte[] sendTransactionAsyncAndGetHash(
5357
String to, String data, CryptoKeyPair cryptoKeyPair, TransactionCallback callback);
58+
59+
public byte[] sendTransactionAsyncAndGetHash(
60+
String to, String data, TransactionCallback callback);
61+
5462
/**
5563
* send call to fisco bcos node and receive call response.
5664
*
@@ -78,4 +86,6 @@ public byte[] sendTransactionAsyncAndGetHash(
7886
* @return hexed data of signed transaction
7987
*/
8088
public String createSignedTransaction(String to, String data, CryptoKeyPair cryptoKeyPair);
89+
90+
public String createSignedTransaction(String to, String data);
8191
}

0 commit comments

Comments
 (0)