use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class Consensus method remove.
public void remove(String nodeID, TransactionSucCallback callback) {
final Function function = new Function(FUNC_REMOVE, 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 Consensus method addObserver.
public void addObserver(String nodeID, TransactionSucCallback callback) {
final Function function = new Function(FUNC_ADDOBSERVER, 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 insert.
public void insert(String tableName, String key, String entry, String optional, TransactionSucCallback callback) {
final Function function = new Function(FUNC_INSERT, 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(optional)), Collections.<TypeReference<?>>emptyList());
asyncExecuteTransaction(function, callback);
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class TableFactory method createTable.
public void createTable(String tableName, String key, String valueField, TransactionSucCallback callback) {
final Function function = new Function(FUNC_CREATETABLE, 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(valueField)), 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 insert.
public void insert(String name, BigInteger item_id, String item_name, TransactionSucCallback callback) {
final Function function = new Function(FUNC_INSERT, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(name), new org.fisco.bcos.web3j.abi.datatypes.generated.Int256(item_id), new org.fisco.bcos.web3j.abi.datatypes.Utf8String(item_name)), Collections.<TypeReference<?>>emptyList());
asyncExecuteTransaction(function, callback);
}
Aggregations