use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class MixContract method update.
public void update(String name, BigInteger item_id, String item_name, TransactionSucCallback callback) {
final Function function = new Function(FUNC_UPDATE, 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);
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class Ok method trans.
public void trans(BigInteger num, TransactionSucCallback callback) {
final Function function = new Function(FUNC_TRANS, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.generated.Uint256(num)), 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 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);
}
use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.
the class DagTransfer method userTransfer.
public void userTransfer(String user_a, String user_b, BigInteger amount, TransactionSucCallback callback) {
final Function function = new Function(FUNC_USERTRANSFER, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(user_a), new org.fisco.bcos.web3j.abi.datatypes.Utf8String(user_b), new org.fisco.bcos.web3j.abi.datatypes.generated.Uint256(amount)), 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 create.
public void create(TransactionSucCallback callback) {
final Function function = new Function(FUNC_CREATE, Arrays.<Type>asList(), Collections.<TypeReference<?>>emptyList());
asyncExecuteTransaction(function, callback);
}
Aggregations