use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class Permission method getRevokeWriteOutput.
public Tuple1<BigInteger> getRevokeWriteOutput(TransactionReceipt transactionReceipt) {
String data = transactionReceipt.getOutput();
final Function function = new Function(FUNC_REVOKEWRITE, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Int256>() {
}));
List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());
;
return new Tuple1<BigInteger>((BigInteger) results.get(0).getValue());
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class Consensus method addSealer.
public void addSealer(String nodeID, TransactionSucCallback callback) {
final Function function = new Function(FUNC_ADDSEALER, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(nodeID)), Collections.<TypeReference<?>>emptyList());
asyncExecuteTransaction(function, callback);
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class CRUD method remove.
public void remove(String tableName, String key, String condition, String optional, TransactionSucCallback callback) {
final Function function = new Function(FUNC_REMOVE, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(tableName), new org.fisco.bcos.web3j.abi.datatypes.Utf8String(key), new org.fisco.bcos.web3j.abi.datatypes.Utf8String(condition), new org.fisco.bcos.web3j.abi.datatypes.Utf8String(optional)), Collections.<TypeReference<?>>emptyList());
asyncExecuteTransaction(function, callback);
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class CRUD method update.
public void update(String tableName, String key, String entry, String condition, String optional, TransactionSucCallback callback) {
final Function function = new Function(FUNC_UPDATE, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(tableName), new org.fisco.bcos.web3j.abi.datatypes.Utf8String(key), new org.fisco.bcos.web3j.abi.datatypes.Utf8String(entry), new org.fisco.bcos.web3j.abi.datatypes.Utf8String(condition), new org.fisco.bcos.web3j.abi.datatypes.Utf8String(optional)), Collections.<TypeReference<?>>emptyList());
asyncExecuteTransaction(function, callback);
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class EvidenceVerify method insertEvidence.
public void insertEvidence(String evi, String info, String id, String signAddr, byte[] message, BigInteger v, byte[] r, byte[] s, TransactionSucCallback callback) {
final Function function = new Function(FUNC_INSERTEVIDENCE, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(evi), new org.fisco.bcos.web3j.abi.datatypes.Utf8String(info), new org.fisco.bcos.web3j.abi.datatypes.Utf8String(id), new org.fisco.bcos.web3j.abi.datatypes.Address(signAddr), new org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32(message), new org.fisco.bcos.web3j.abi.datatypes.generated.Uint8(v), new org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32(r), new org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32(s)), Collections.<TypeReference<?>>emptyList());
asyncExecuteTransaction(function, callback);
}
Aggregations