use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class Permission method remove.
public void remove(String table_name, String addr, TransactionSucCallback callback) {
final Function function = new Function(FUNC_REMOVE, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(table_name), new org.fisco.bcos.web3j.abi.datatypes.Utf8String(addr)), Collections.<TypeReference<?>>emptyList());
asyncExecuteTransaction(function, callback);
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class Permission method revokeWrite.
public void revokeWrite(String contractAddr, String user, TransactionSucCallback callback) {
final Function function = new Function(FUNC_REVOKEWRITE, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Address(contractAddr), new org.fisco.bcos.web3j.abi.datatypes.Address(user)), Collections.<TypeReference<?>>emptyList());
asyncExecuteTransaction(function, callback);
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class Permission method getRevokeWriteInput.
public Tuple2<String, String> getRevokeWriteInput(TransactionReceipt transactionReceipt) {
String data = transactionReceipt.getInput().substring(10);
final Function function = new Function(FUNC_REVOKEWRITE, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Address>() {
}, new TypeReference<Address>() {
}));
List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());
;
return new Tuple2<String, String>((String) results.get(0).getValue(), (String) results.get(1).getValue());
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class TableTest 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 TableTest 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);
}
Aggregations