Search in sources :

Example 11 with Function

use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.

the class ParallelOk method enableParallel.

public void enableParallel(TransactionSucCallback callback) {
    final Function function = new Function(FUNC_ENABLEPARALLEL, Arrays.<Type>asList(), Collections.<TypeReference<?>>emptyList());
    asyncExecuteTransaction(function, callback);
}
Also used : Function(org.fisco.bcos.web3j.abi.datatypes.Function)

Example 12 with Function

use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.

the class ParallelOk method set.

public void set(String name, BigInteger num, TransactionSucCallback callback) {
    final Function function = new Function(FUNC_SET, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(name), new org.fisco.bcos.web3j.abi.datatypes.generated.Uint256(num)), Collections.<TypeReference<?>>emptyList());
    asyncExecuteTransaction(function, callback);
}
Also used : Function(org.fisco.bcos.web3j.abi.datatypes.Function) Uint256(org.fisco.bcos.web3j.abi.datatypes.generated.Uint256)

Example 13 with Function

use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.

the class ParallelOk method disableParallel.

public void disableParallel(TransactionSucCallback callback) {
    final Function function = new Function(FUNC_DISABLEPARALLEL, Arrays.<Type>asList(), Collections.<TypeReference<?>>emptyList());
    asyncExecuteTransaction(function, callback);
}
Also used : Function(org.fisco.bcos.web3j.abi.datatypes.Function)

Example 14 with Function

use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.

the class ParallelOk method unregisterParallelFunction.

public void unregisterParallelFunction(String functionName, TransactionSucCallback callback) {
    final Function function = new Function(FUNC_UNREGISTERPARALLELFUNCTION, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(functionName)), Collections.<TypeReference<?>>emptyList());
    asyncExecuteTransaction(function, callback);
}
Also used : Function(org.fisco.bcos.web3j.abi.datatypes.Function)

Example 15 with Function

use of org.fisco.bcos.web3j.abi.datatypes.Function in project web3sdk by FISCO-BCOS.

the class DagTransfer method userSave.

public void userSave(String user, BigInteger balance, TransactionSucCallback callback) {
    final Function function = new Function(FUNC_USERSAVE, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(user), new org.fisco.bcos.web3j.abi.datatypes.generated.Uint256(balance)), Collections.<TypeReference<?>>emptyList());
    asyncExecuteTransaction(function, callback);
}
Also used : Function(org.fisco.bcos.web3j.abi.datatypes.Function) Uint256(org.fisco.bcos.web3j.abi.datatypes.generated.Uint256)

Aggregations

Function (org.fisco.bcos.web3j.abi.datatypes.Function)108 Utf8String (org.fisco.bcos.web3j.abi.datatypes.Utf8String)59 Type (org.fisco.bcos.web3j.abi.datatypes.Type)41 TypeReference (org.fisco.bcos.web3j.abi.TypeReference)38 Tuple1 (org.fisco.bcos.web3j.tuples.generated.Tuple1)26 Int256 (org.fisco.bcos.web3j.abi.datatypes.generated.Int256)22 Address (org.fisco.bcos.web3j.abi.datatypes.Address)19 Uint256 (org.fisco.bcos.web3j.abi.datatypes.generated.Uint256)16 Test (org.junit.Test)15 EncryptType (org.fisco.bcos.web3j.crypto.EncryptType)11 Bytes32 (org.fisco.bcos.web3j.abi.datatypes.generated.Bytes32)8 NamedType (org.fisco.bcos.web3j.protocol.core.methods.response.AbiDefinition.NamedType)8 Bool (org.fisco.bcos.web3j.abi.datatypes.Bool)6 DynamicBytes (org.fisco.bcos.web3j.abi.datatypes.DynamicBytes)6 Tuple2 (org.fisco.bcos.web3j.tuples.generated.Tuple2)6 CollectionType (com.fasterxml.jackson.databind.type.CollectionType)2 ArrayList (java.util.ArrayList)2 AbiDefinition (org.fisco.bcos.web3j.protocol.core.methods.response.AbiDefinition)2 TransactionReceipt (org.fisco.bcos.web3j.protocol.core.methods.response.TransactionReceipt)2 DynamicArray (org.fisco.bcos.web3j.abi.datatypes.DynamicArray)1