org.fisco.bcos.web3j.abi.datatypes.Utf8String Java Examples
The following examples show how to use
org.fisco.bcos.web3j.abi.datatypes.Utf8String.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Topic.java From WeEvent with Apache License 2.0 | 6 votes |
public Tuple5<List<String>, List<BigInteger>, List<BigInteger>, List<BigInteger>, List<String>> getFlushSnapshotInput(TransactionReceipt transactionReceipt) { String data = transactionReceipt.getInput().substring(10); final Function function = new Function(FUNC_FLUSHSNAPSHOT, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList( new TypeReference<DynamicArray<Utf8String>>() {}, new TypeReference<DynamicArray<Uint256>>() {}, new TypeReference<DynamicArray<Uint256>>() {}, new TypeReference<DynamicArray<Uint256>>() {}, new TypeReference<DynamicArray<Address>>() {})); List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());; return new Tuple5<List<String>, List<BigInteger>, List<BigInteger>, List<BigInteger>, List<String>>( convertToNative((List<Utf8String>) results.get(0).getValue()), convertToNative((List<Uint256>) results.get(1).getValue()), convertToNative((List<Uint256>) results.get(2).getValue()), convertToNative((List<Uint256>) results.get(3).getValue()), convertToNative((List<Address>) results.get(4).getValue()) ); }
Example #2
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 6 votes |
public RemoteCall<Tuple7<String, String, String, List<BigInteger>, List<byte[]>, List<byte[]>, List<String>>> getEvidence() { final Function function = new Function(FUNC_GETEVIDENCE, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Utf8String>() {}, new TypeReference<Utf8String>() {}, new TypeReference<Utf8String>() {}, new TypeReference<DynamicArray<Uint8>>() {}, new TypeReference<DynamicArray<Bytes32>>() {}, new TypeReference<DynamicArray<Bytes32>>() {}, new TypeReference<DynamicArray<Address>>() {})); return new RemoteCall<Tuple7<String, String, String, List<BigInteger>, List<byte[]>, List<byte[]>, List<String>>>( new Callable<Tuple7<String, String, String, List<BigInteger>, List<byte[]>, List<byte[]>, List<String>>>() { @Override public Tuple7<String, String, String, List<BigInteger>, List<byte[]>, List<byte[]>, List<String>> call() throws Exception { List<Type> results = executeCallMultipleValueReturn(function); return new Tuple7<String, String, String, List<BigInteger>, List<byte[]>, List<byte[]>, List<String>>( (String) results.get(0).getValue(), (String) results.get(1).getValue(), (String) results.get(2).getValue(), convertToNative((List<Uint8>) results.get(3).getValue()), convertToNative((List<Bytes32>) results.get(4).getValue()), convertToNative((List<Bytes32>) results.get(5).getValue()), convertToNative((List<Address>) results.get(6).getValue())); } }); }
Example #3
Source File: TestGroupSig.java From group-signature-client with GNU General Public License v3.0 | 6 votes |
public static RemoteCall<TestGroupSig> deploy( Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider, String _sig, String _message, String _gpk_info, String _pbc_param_info) { String encodedConstructor = FunctionEncoder.encodeConstructor( Arrays.<Type>asList( new Utf8String(_sig), new Utf8String(_message), new Utf8String(_gpk_info), new Utf8String(_pbc_param_info))); return deployRemoteCall( TestGroupSig.class, web3j, credentials, contractGasProvider, BINARY, encodedConstructor); }
Example #4
Source File: TestGroupSig.java From group-signature-client with GNU General Public License v3.0 | 6 votes |
public Tuple4<String, String, String, String> getUpdate_group_sig_dataInput( TransactionReceipt transactionReceipt) { String data = transactionReceipt.getInput().substring(10); final Function function = new Function( FUNC_UPDATE_GROUP_SIG_DATA, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList( new TypeReference<Utf8String>() {}, new TypeReference<Utf8String>() {}, new TypeReference<Utf8String>() {}, new TypeReference<Utf8String>() {})); List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters()); ; return new Tuple4<String, String, String, String>( (String) results.get(0).getValue(), (String) results.get(1).getValue(), (String) results.get(2).getValue(), (String) results.get(3).getValue()); }
Example #5
Source File: EvidenceSignersData.java From WeBASE-Front with Apache License 2.0 | 6 votes |
public Tuple6<String, String, String, BigInteger, byte[], byte[]> getNewEvidenceInput(TransactionReceipt transactionReceipt) { String data = transactionReceipt.getInput().substring(10); final Function function = new Function(FUNC_NEWEVIDENCE, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Utf8String>() {}, new TypeReference<Utf8String>() {}, new TypeReference<Utf8String>() {}, new TypeReference<Uint8>() {}, new TypeReference<Bytes32>() {}, new TypeReference<Bytes32>() {})); List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());; return new Tuple6<String, String, String, BigInteger, byte[], byte[]>( (String) results.get(0).getValue(), (String) results.get(1).getValue(), (String) results.get(2).getValue(), (BigInteger) results.get(3).getValue(), (byte[]) results.get(4).getValue(), (byte[]) results.get(5).getValue() ); }
Example #6
Source File: TestGroupSig.java From group-signature-client with GNU General Public License v3.0 | 6 votes |
public void update_group_sig_data( String new_sig, String new_message, String new_gpk_info, String new_pbc_param_info, TransactionSucCallback callback) { final Function function = new Function( FUNC_UPDATE_GROUP_SIG_DATA, Arrays.<Type>asList( new Utf8String(new_sig), new Utf8String(new_message), new Utf8String(new_gpk_info), new Utf8String(new_pbc_param_info)), Collections.<TypeReference<?>>emptyList()); asyncExecuteTransaction(function, callback); }
Example #7
Source File: Topic.java From WeEvent with Apache License 2.0 | 6 votes |
public RemoteCall<Tuple4<BigInteger, BigInteger, BigInteger, String>> getSnapshot(String topicName) { final Function function = new Function(FUNC_GETSNAPSHOT, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(topicName)), Arrays.<TypeReference<?>>asList( new TypeReference<Uint256>() {}, new TypeReference<Uint256>() {}, new TypeReference<Uint256>() {}, new TypeReference<Address>() {})); return new RemoteCall<Tuple4<BigInteger, BigInteger, BigInteger, String>>( new Callable<Tuple4<BigInteger, BigInteger, BigInteger, String>>() { @Override public Tuple4<BigInteger, BigInteger, BigInteger, String> call() throws Exception { List<Type> results = executeCallMultipleValueReturn(function); return new Tuple4<BigInteger, BigInteger, BigInteger, String>( (BigInteger) results.get(0).getValue(), (BigInteger) results.get(1).getValue(), (BigInteger) results.get(2).getValue(), (String) results.get(3).getValue()); } }); }
Example #8
Source File: TestGroupSig.java From group-signature-client with GNU General Public License v3.0 | 6 votes |
public static RemoteCall<TestGroupSig> deploy( Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider, String _sig, String _message, String _gpk_info, String _pbc_param_info) { String encodedConstructor = FunctionEncoder.encodeConstructor( Arrays.<Type>asList( new Utf8String(_sig), new Utf8String(_message), new Utf8String(_gpk_info), new Utf8String(_pbc_param_info))); return deployRemoteCall( TestGroupSig.class, web3j, transactionManager, contractGasProvider, BINARY, encodedConstructor); }
Example #9
Source File: TestRingSig.java From group-signature-client with GNU General Public License v3.0 | 6 votes |
@Deprecated public static RemoteCall<TestRingSig> deploy( Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit, String _sig, String _message, String _param_info) { String encodedConstructor = FunctionEncoder.encodeConstructor( Arrays.<Type>asList( new Utf8String(_sig), new Utf8String(_message), new Utf8String(_param_info))); return deployRemoteCall( TestRingSig.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, encodedConstructor); }
Example #10
Source File: TopicController.java From WeEvent with Apache License 2.0 | 6 votes |
public RemoteCall<Tuple3<BigInteger, BigInteger, List<String>>> listTopicName(BigInteger pageIndex, BigInteger pageSize) { final Function function = new Function(FUNC_LISTTOPICNAME, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.generated.Uint256(pageIndex), new org.fisco.bcos.web3j.abi.datatypes.generated.Uint256(pageSize)), Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {}, new TypeReference<Uint256>() {}, new TypeReference<DynamicArray<Utf8String>>() {})); return new RemoteCall<Tuple3<BigInteger, BigInteger, List<String>>>( new Callable<Tuple3<BigInteger, BigInteger, List<String>>>() { @Override public Tuple3<BigInteger, BigInteger, List<String>> call() throws Exception { List<Type> results = executeCallMultipleValueReturn(function); return new Tuple3<BigInteger, BigInteger, List<String>>( (BigInteger) results.get(0).getValue(), (BigInteger) results.get(1).getValue(), convertToNative((List<Utf8String>) results.get(2).getValue())); } }); }
Example #11
Source File: TestRingSig.java From group-signature-client with GNU General Public License v3.0 | 6 votes |
public static RemoteCall<TestRingSig> deploy( Web3j web3j, TransactionManager transactionManager, ContractGasProvider contractGasProvider, String _sig, String _message, String _param_info) { String encodedConstructor = FunctionEncoder.encodeConstructor( Arrays.<Type>asList( new Utf8String(_sig), new Utf8String(_message), new Utf8String(_param_info))); return deployRemoteCall( TestRingSig.class, web3j, transactionManager, contractGasProvider, BINARY, encodedConstructor); }
Example #12
Source File: TestGroupSig.java From group-signature-client with GNU General Public License v3.0 | 6 votes |
@Deprecated public static RemoteCall<TestGroupSig> deploy( Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit, String _sig, String _message, String _gpk_info, String _pbc_param_info) { String encodedConstructor = FunctionEncoder.encodeConstructor( Arrays.<Type>asList( new Utf8String(_sig), new Utf8String(_message), new Utf8String(_gpk_info), new Utf8String(_pbc_param_info))); return deployRemoteCall( TestGroupSig.class, web3j, credentials, gasPrice, gasLimit, BINARY, encodedConstructor); }
Example #13
Source File: Topic.java From WeEvent with Apache License 2.0 | 6 votes |
public String flushSnapshotSeq(List<String> topicName, List<BigInteger> lastSequence, List<BigInteger> lastBlock, List<BigInteger> lastTimestamp, List<String> lastSender) { final Function function = new Function( FUNC_FLUSHSNAPSHOT, Arrays.<Type>asList(topicName.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.Utf8String>( org.fisco.bcos.web3j.abi.Utils.typeMap(topicName, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), lastSequence.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.generated.Uint256>( org.fisco.bcos.web3j.abi.Utils.typeMap(lastSequence, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class)), lastBlock.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.generated.Uint256>( org.fisco.bcos.web3j.abi.Utils.typeMap(lastBlock, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class)), lastTimestamp.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.generated.Uint256>( org.fisco.bcos.web3j.abi.Utils.typeMap(lastTimestamp, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class)), lastSender.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("address[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.Address>( org.fisco.bcos.web3j.abi.Utils.typeMap(lastSender, org.fisco.bcos.web3j.abi.datatypes.Address.class))), Collections.<TypeReference<?>>emptyList()); return createTransactionSeq(function); }
Example #14
Source File: Topic.java From WeEvent with Apache License 2.0 | 6 votes |
public void flushSnapshot(List<String> topicName, List<BigInteger> lastSequence, List<BigInteger> lastBlock, List<BigInteger> lastTimestamp, List<String> lastSender, TransactionSucCallback callback) { final Function function = new Function( FUNC_FLUSHSNAPSHOT, Arrays.<Type>asList(topicName.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.Utf8String>( org.fisco.bcos.web3j.abi.Utils.typeMap(topicName, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), lastSequence.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.generated.Uint256>( org.fisco.bcos.web3j.abi.Utils.typeMap(lastSequence, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class)), lastBlock.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.generated.Uint256>( org.fisco.bcos.web3j.abi.Utils.typeMap(lastBlock, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class)), lastTimestamp.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.generated.Uint256>( org.fisco.bcos.web3j.abi.Utils.typeMap(lastTimestamp, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class)), lastSender.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("address[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.Address>( org.fisco.bcos.web3j.abi.Utils.typeMap(lastSender, org.fisco.bcos.web3j.abi.datatypes.Address.class))), Collections.<TypeReference<?>>emptyList()); asyncExecuteTransaction(function, callback); }
Example #15
Source File: Topic.java From WeEvent with Apache License 2.0 | 6 votes |
public RemoteCall<TransactionReceipt> flushSnapshot(List<String> topicName, List<BigInteger> lastSequence, List<BigInteger> lastBlock, List<BigInteger> lastTimestamp, List<String> lastSender) { final Function function = new Function( FUNC_FLUSHSNAPSHOT, Arrays.<Type>asList(topicName.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("string[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.Utf8String>( org.fisco.bcos.web3j.abi.Utils.typeMap(topicName, org.fisco.bcos.web3j.abi.datatypes.Utf8String.class)), lastSequence.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.generated.Uint256>( org.fisco.bcos.web3j.abi.Utils.typeMap(lastSequence, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class)), lastBlock.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.generated.Uint256>( org.fisco.bcos.web3j.abi.Utils.typeMap(lastBlock, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class)), lastTimestamp.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("uint256[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.generated.Uint256>( org.fisco.bcos.web3j.abi.Utils.typeMap(lastTimestamp, org.fisco.bcos.web3j.abi.datatypes.generated.Uint256.class)), lastSender.isEmpty()?org.fisco.bcos.web3j.abi.datatypes.DynamicArray.empty("address[]"): new org.fisco.bcos.web3j.abi.datatypes.DynamicArray<org.fisco.bcos.web3j.abi.datatypes.Address>( org.fisco.bcos.web3j.abi.Utils.typeMap(lastSender, org.fisco.bcos.web3j.abi.datatypes.Address.class))), Collections.<TypeReference<?>>emptyList()); return executeRemoteCallTransaction(function); }
Example #16
Source File: Topic.java From WeEvent with Apache License 2.0 | 6 votes |
public Tuple3<String, String, String> getPublishWeEventInput(TransactionReceipt transactionReceipt) { String data = transactionReceipt.getInput().substring(10); final Function function = new Function(FUNC_PUBLISHWEEVENT, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList( new TypeReference<Utf8String>() {}, new TypeReference<Utf8String>() {}, new TypeReference<Utf8String>() {})); List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());; return new Tuple3<String, String, String>( (String) results.get(0).getValue(), (String) results.get(1).getValue(), (String) results.get(2).getValue() ); }
Example #17
Source File: TestGroupSig.java From group-signature-client with GNU General Public License v3.0 | 6 votes |
@Deprecated public static RemoteCall<TestGroupSig> deploy( Web3j web3j, TransactionManager transactionManager, BigInteger gasPrice, BigInteger gasLimit, String _sig, String _message, String _gpk_info, String _pbc_param_info) { String encodedConstructor = FunctionEncoder.encodeConstructor( Arrays.<Type>asList( new Utf8String(_sig), new Utf8String(_message), new Utf8String(_gpk_info), new Utf8String(_pbc_param_info))); return deployRemoteCall( TestGroupSig.class, web3j, transactionManager, gasPrice, gasLimit, BINARY, encodedConstructor); }
Example #18
Source File: TestRingSig.java From group-signature-client with GNU General Public License v3.0 | 6 votes |
public static RemoteCall<TestRingSig> deploy( Web3j web3j, Credentials credentials, ContractGasProvider contractGasProvider, String _sig, String _message, String _param_info) { String encodedConstructor = FunctionEncoder.encodeConstructor( Arrays.<Type>asList( new Utf8String(_sig), new Utf8String(_message), new Utf8String(_param_info))); return deployRemoteCall( TestRingSig.class, web3j, credentials, contractGasProvider, BINARY, encodedConstructor); }
Example #19
Source File: TestRingSig.java From group-signature-client with GNU General Public License v3.0 | 6 votes |
@Deprecated public static RemoteCall<TestRingSig> deploy( Web3j web3j, Credentials credentials, BigInteger gasPrice, BigInteger gasLimit, String _sig, String _message, String _param_info) { String encodedConstructor = FunctionEncoder.encodeConstructor( Arrays.<Type>asList( new Utf8String(_sig), new Utf8String(_message), new Utf8String(_param_info))); return deployRemoteCall( TestRingSig.class, web3j, credentials, gasPrice, gasLimit, BINARY, encodedConstructor); }
Example #20
Source File: Topic.java From WeEvent with Apache License 2.0 | 5 votes |
public String addTopicACLSeq(String topicName, String ownerAddress) { final Function function = new Function( FUNC_ADDTOPICACL, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(topicName), new org.fisco.bcos.web3j.abi.datatypes.Address(ownerAddress)), Collections.<TypeReference<?>>emptyList()); return createTransactionSeq(function); }
Example #21
Source File: HelloWorld.java From WeBASE-Codegen-Monkey with Apache License 2.0 | 5 votes |
public void set(String n, TransactionSucCallback callback) { final Function function = new Function( FUNC_SET, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(n)), Collections.<TypeReference<?>>emptyList()); asyncExecuteTransaction(function, callback); }
Example #22
Source File: HelloWorld.java From WeBASE-Codegen-Monkey with Apache License 2.0 | 5 votes |
public RemoteCall<TransactionReceipt> set(String n) { final Function function = new Function( FUNC_SET, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(n)), Collections.<TypeReference<?>>emptyList()); return executeRemoteCallTransaction(function); }
Example #23
Source File: HelloWorld.java From WeBASE-Codegen-Monkey with Apache License 2.0 | 5 votes |
public RemoteCall<TransactionReceipt> set(String n) { final Function function = new Function( FUNC_SET, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(n)), Collections.<TypeReference<?>>emptyList()); return executeRemoteCallTransaction(function); }
Example #24
Source File: Topic.java From WeEvent with Apache License 2.0 | 5 votes |
public Tuple2<String, String> getDelOperatorInput(TransactionReceipt transactionReceipt) { String data = transactionReceipt.getInput().substring(10); final Function function = new Function(FUNC_DELOPERATOR, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Utf8String>() {}, new TypeReference<Address>() {})); List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());; return new Tuple2<String, String>( (String) results.get(0).getValue(), (String) results.get(1).getValue() ); }
Example #25
Source File: HelloWorld.java From WeBASE-Codegen-Monkey with Apache License 2.0 | 5 votes |
public void set(String n, TransactionSucCallback callback) { final Function function = new Function( FUNC_SET, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(n)), Collections.<TypeReference<?>>emptyList()); asyncExecuteTransaction(function, callback); }
Example #26
Source File: Topic.java From WeEvent with Apache License 2.0 | 5 votes |
public RemoteCall<Tuple2<BigInteger, List<String>>> listOperator(String topicName) { final Function function = new Function(FUNC_LISTOPERATOR, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(topicName)), Arrays.<TypeReference<?>>asList(new TypeReference<Uint256>() {}, new TypeReference<DynamicArray<Address>>() {})); return new RemoteCall<Tuple2<BigInteger, List<String>>>( new Callable<Tuple2<BigInteger, List<String>>>() { @Override public Tuple2<BigInteger, List<String>> call() throws Exception { List<Type> results = executeCallMultipleValueReturn(function); return new Tuple2<BigInteger, List<String>>( (BigInteger) results.get(0).getValue(), convertToNative((List<Address>) results.get(1).getValue())); } }); }
Example #27
Source File: Topic.java From WeEvent with Apache License 2.0 | 5 votes |
public Tuple2<String, String> getAddTopicACLInput(TransactionReceipt transactionReceipt) { String data = transactionReceipt.getInput().substring(10); final Function function = new Function(FUNC_ADDTOPICACL, Arrays.<Type>asList(), Arrays.<TypeReference<?>>asList(new TypeReference<Utf8String>() {}, new TypeReference<Address>() {})); List<Type> results = FunctionReturnDecoder.decode(data, function.getOutputParameters());; return new Tuple2<String, String>( (String) results.get(0).getValue(), (String) results.get(1).getValue() ); }
Example #28
Source File: HelloWorld.java From WeBASE-Codegen-Monkey with Apache License 2.0 | 5 votes |
public String setSeq(String n) { final Function function = new Function( FUNC_SET, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(n)), Collections.<TypeReference<?>>emptyList()); return createTransactionSeq(function); }
Example #29
Source File: HelloWorld.java From WeBASE-Codegen-Monkey with Apache License 2.0 | 5 votes |
public RemoteCall<TransactionReceipt> set(String n) { final Function function = new Function( FUNC_SET, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(n)), Collections.<TypeReference<?>>emptyList()); return executeRemoteCallTransaction(function); }
Example #30
Source File: HelloWorld.java From WeBASE-Codegen-Monkey with Apache License 2.0 | 5 votes |
public void set(String n, TransactionSucCallback callback) { final Function function = new Function( FUNC_SET, Arrays.<Type>asList(new org.fisco.bcos.web3j.abi.datatypes.Utf8String(n)), Collections.<TypeReference<?>>emptyList()); asyncExecuteTransaction(function, callback); }