use of org.fisco.bcos.web3j.abi.TypeReference in project web3sdk by FISCO-BCOS.
the class ChainGovernance method getFreezeAccountInput.
public Tuple1<String> getFreezeAccountInput(TransactionReceipt transactionReceipt) {
String data = transactionReceipt.getInput().substring(10);
final Function function = new Function(FUNC_FREEZEACCOUNT, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Address>() {
}));
List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());
;
return new Tuple1<String>((String) results.get(0).getValue());
}
use of org.fisco.bcos.web3j.abi.TypeReference in project web3sdk by FISCO-BCOS.
the class ChainGovernance method getGrantCommitteeMemberInput.
public Tuple1<String> getGrantCommitteeMemberInput(TransactionReceipt transactionReceipt) {
String data = transactionReceipt.getInput().substring(10);
final Function function = new Function(FUNC_GRANTCOMMITTEEMEMBER, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Address>() {
}));
List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());
;
return new Tuple1<String>((String) results.get(0).getValue());
}
use of org.fisco.bcos.web3j.abi.TypeReference in project web3sdk by FISCO-BCOS.
the class ChainGovernance method getRevokeOperatorOutput.
public Tuple1<BigInteger> getRevokeOperatorOutput(TransactionReceipt transactionReceipt) {
String data = transactionReceipt.getOutput();
final Function function = new Function(FUNC_REVOKEOPERATOR, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Int256>() {
}));
List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());
;
return new Tuple1<BigInteger>((BigInteger) results.get(0).getValue());
}
use of org.fisco.bcos.web3j.abi.TypeReference in project web3sdk by FISCO-BCOS.
the class ChainGovernance method getUnfreezeAccountInput.
public Tuple1<String> getUnfreezeAccountInput(TransactionReceipt transactionReceipt) {
String data = transactionReceipt.getInput().substring(10);
final Function function = new Function(FUNC_UNFREEZEACCOUNT, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Address>() {
}));
List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());
;
return new Tuple1<String>((String) results.get(0).getValue());
}
use of org.fisco.bcos.web3j.abi.TypeReference in project web3sdk by FISCO-BCOS.
the class ChainGovernance method getUpdateThresholdInput.
public Tuple1<BigInteger> getUpdateThresholdInput(TransactionReceipt transactionReceipt) {
String data = transactionReceipt.getInput().substring(10);
final Function function = new Function(FUNC_UPDATETHRESHOLD, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Int256>() {
}));
List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());
;
return new Tuple1<BigInteger>((BigInteger) results.get(0).getValue());
}
Aggregations