use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class EvidenceVerify method getInsertEvidenceOutput.
public Tuple1<String> getInsertEvidenceOutput(TransactionReceipt transactionReceipt) {
String data = transactionReceipt.getOutput();
final Function function = new Function(FUNC_INSERTEVIDENCE, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Address>() {
}));
List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());
;
return new Tuple1<String>((String) results.get(0).getValue());
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class MixContract method create.
public void create(TransactionSucCallback callback) {
final Function function = new Function(FUNC_CREATE, Arrays.<Type>asList(), Collections.<TypeReference<?>>emptyList());
asyncExecuteTransaction(function, callback);
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class MixContract method remove.
public void remove(String name, BigInteger item_id, TransactionSucCallback callback) {
final Function function = new Function(FUNC_REMOVE, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(name), new org.fisco.bcos.web3j.abi.datatypes.generated.Int256(item_id)), Collections.<TypeReference<?>>emptyList());
asyncExecuteTransaction(function, callback);
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class OkD method trans.
public void trans(String from_accout, BigInteger num, TransactionSucCallback callback) {
final Function function = new Function(FUNC_TRANS, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(from_accout), new org.fisco.bcos.web3j.abi.datatypes.generated.Int256(num)), Collections.<TypeReference<?>>emptyList());
asyncExecuteTransaction(function, callback);
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class ContractLifeCyclePrecompiled method getUnfreezeInput.
public Tuple1<String> getUnfreezeInput(TransactionReceipt transactionReceipt) {
String data = transactionReceipt.getInput().substring(10);
final Function function = new Function(FUNC_UNFREEZE, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Address>() {
}));
List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());
;
return new Tuple1<String>((String) results.get(0).getValue());
}
Aggregations