org.fisco.bcos.web3j.precompile.permission.Permission Maven / Gradle / Ivy
package org.fisco.bcos.web3j.precompile.permission;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.Collections;
import org.fisco.bcos.web3j.abi.TypeReference;
import org.fisco.bcos.web3j.abi.datatypes.Function;
import org.fisco.bcos.web3j.abi.datatypes.Type;
import org.fisco.bcos.web3j.abi.datatypes.Utf8String;
import org.fisco.bcos.web3j.crypto.Credentials;
import org.fisco.bcos.web3j.protocol.Web3j;
import org.fisco.bcos.web3j.protocol.core.RemoteCall;
import org.fisco.bcos.web3j.protocol.core.methods.response.TransactionReceipt;
import org.fisco.bcos.web3j.tx.Contract;
import org.fisco.bcos.web3j.tx.TransactionManager;
import org.fisco.bcos.web3j.tx.gas.ContractGasProvider;
/**
* Auto generated code.
*
* Do not modify!
*
*
Please use the web3j command line tools,
* or the org.fisco.bcos.web3j.codegen.SolidityFunctionWrapperGenerator in the codegen module to update.
*
*
Generated with web3j version none.
*/
public class Permission extends Contract {
private static final String BINARY = "";
public static final String FUNC_INSERT = "insert";
public static final String FUNC_QUERYBYNAME = "queryByName";
public static final String FUNC_REMOVE = "remove";
@Deprecated
protected Permission(
String contractAddress,
Web3j web3j,
Credentials credentials,
BigInteger gasPrice,
BigInteger gasLimit) {
super(BINARY, contractAddress, web3j, credentials, gasPrice, gasLimit);
}
protected Permission(
String contractAddress,
Web3j web3j,
Credentials credentials,
ContractGasProvider contractGasProvider) {
super(BINARY, contractAddress, web3j, credentials, contractGasProvider);
}
@Deprecated
protected Permission(
String contractAddress,
Web3j web3j,
TransactionManager transactionManager,
BigInteger gasPrice,
BigInteger gasLimit) {
super(BINARY, contractAddress, web3j, transactionManager, gasPrice, gasLimit);
}
protected Permission(
String contractAddress,
Web3j web3j,
TransactionManager transactionManager,
ContractGasProvider contractGasProvider) {
super(BINARY, contractAddress, web3j, transactionManager, contractGasProvider);
}
public RemoteCall insert(String table_name, String addr) {
final Function function =
new Function(
FUNC_INSERT,
Arrays.asList(new Utf8String(table_name), new Utf8String(addr)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
public RemoteCall queryByName(String table_name) {
final Function function =
new Function(
FUNC_QUERYBYNAME,
Arrays.asList(new Utf8String(table_name)),
Arrays.>asList(new TypeReference() {}));
return executeRemoteCallSingleValueReturn(function, String.class);
}
public RemoteCall remove(String table_name, String addr) {
final Function function =
new Function(
FUNC_REMOVE,
Arrays.asList(new Utf8String(table_name), new Utf8String(addr)),
Collections.>emptyList());
return executeRemoteCallTransaction(function);
}
@Deprecated
public static Permission load(
String contractAddress,
Web3j web3j,
Credentials credentials,
BigInteger gasPrice,
BigInteger gasLimit) {
return new Permission(contractAddress, web3j, credentials, gasPrice, gasLimit);
}
@Deprecated
public static Permission load(
String contractAddress,
Web3j web3j,
TransactionManager transactionManager,
BigInteger gasPrice,
BigInteger gasLimit) {
return new Permission(contractAddress, web3j, transactionManager, gasPrice, gasLimit);
}
public static Permission load(
String contractAddress,
Web3j web3j,
Credentials credentials,
ContractGasProvider contractGasProvider) {
return new Permission(contractAddress, web3j, credentials, contractGasProvider);
}
public static Permission load(
String contractAddress,
Web3j web3j,
TransactionManager transactionManager,
ContractGasProvider contractGasProvider) {
return new Permission(contractAddress, web3j, transactionManager, contractGasProvider);
}
public static RemoteCall deploy(
Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider) {
return deployRemoteCall(Permission.class, web3j, credentials, contractGasProvider, BINARY, "");
}
@Deprecated
public static RemoteCall deploy(
Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit) {
return deployRemoteCall(Permission.class, web3j, credentials, gasPrice, gasLimit, BINARY, "");
}
public static RemoteCall deploy(
Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider) {
return deployRemoteCall(
Permission.class, web3j, transactionManager, contractGasProvider, BINARY, "");
}
@Deprecated
public static RemoteCall deploy(
Web3j web3j,
TransactionManager transactionManager,
BigInteger gasPrice,
BigInteger gasLimit) {
return deployRemoteCall(
Permission.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, "");
}
}