Java Code Examples for org.fisco.bcos.web3j.abi.EventEncoder#encode()
The following examples show how to use
org.fisco.bcos.web3j.abi.EventEncoder#encode() .
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: Contract.java From web3sdk with Apache License 2.0 | 6 votes |
public static EventValues staticExtractEventParameters(Event event, Log log) { List<String> topics = log.getTopics(); String encodedEventSignature = EventEncoder.encode(event); if (!topics.get(0).equals(encodedEventSignature)) { return null; } List<Type> indexedValues = new ArrayList<>(); List<Type> nonIndexedValues = FunctionReturnDecoder.decode(log.getData(), event.getNonIndexedParameters()); List<TypeReference<Type>> indexedParameters = event.getIndexedParameters(); for (int i = 0; i < indexedParameters.size(); i++) { Type value = FunctionReturnDecoder.decodeIndexedValue( topics.get(i + 1), indexedParameters.get(i)); indexedValues.add(value); } return new EventValues(indexedValues, nonIndexedValues); }
Example 2
Source File: EvidenceVerify.java From web3sdk with Apache License 2.0 | 5 votes |
public void registernewEvidenceEventEventLogFilter( String fromBlock, String toBlock, List<String> otherTopcs, EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(NEWEVIDENCEEVENT_EVENT); registerEventLogPushFilter(ABI, BINARY, topic0, fromBlock, toBlock, otherTopcs, callback); }
Example 3
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registererrorAddSignaturesEventEventLogFilter(String fromBlock, String toBlock, List<String> otherTopcs, EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(ERRORADDSIGNATURESEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,fromBlock,toBlock,otherTopcs,callback); }
Example 4
Source File: Ok.java From web3sdk with Apache License 2.0 | 4 votes |
public void registerTransEventEventLogFilter(EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(TRANSEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,callback); }
Example 5
Source File: EvidenceVerify.java From web3sdk with Apache License 2.0 | 4 votes |
public void registernewEvidenceEventEventLogFilter(EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(NEWEVIDENCEEVENT_EVENT); registerEventLogPushFilter(ABI, BINARY, topic0, callback); }
Example 6
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registererrorRepeatSignaturesEventEventLogFilter(EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(ERRORREPEATSIGNATURESEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,callback); }
Example 7
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registererrorRepeatSignaturesEventEventLogFilter(String fromBlock, String toBlock, List<String> otherTopcs, EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(ERRORREPEATSIGNATURESEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,fromBlock,toBlock,otherTopcs,callback); }
Example 8
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registeraddRepeatSignaturesEventEventLogFilter(EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(ADDREPEATSIGNATURESEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,callback); }
Example 9
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registeraddRepeatSignaturesEventEventLogFilter(String fromBlock, String toBlock, List<String> otherTopcs, EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(ADDREPEATSIGNATURESEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,fromBlock,toBlock,otherTopcs,callback); }
Example 10
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registererrorAddSignaturesEventEventLogFilter(EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(ERRORADDSIGNATURESEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,callback); }
Example 11
Source File: EvidenceSignersData.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registernewEvidenceEventEventLogFilter(String fromBlock, String toBlock, List<String> otherTopcs, EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(NEWEVIDENCEEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,fromBlock,toBlock,otherTopcs,callback); }
Example 12
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registererrorNewSignaturesEventEventLogFilter(EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(ERRORNEWSIGNATURESEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,callback); }
Example 13
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registererrorNewSignaturesEventEventLogFilter(String fromBlock, String toBlock, List<String> otherTopcs, EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(ERRORNEWSIGNATURESEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,fromBlock,toBlock,otherTopcs,callback); }
Example 14
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registernewSignaturesEventEventLogFilter(EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(NEWSIGNATURESEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,callback); }
Example 15
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registernewSignaturesEventEventLogFilter(String fromBlock, String toBlock, List<String> otherTopcs, EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(NEWSIGNATURESEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,fromBlock,toBlock,otherTopcs,callback); }
Example 16
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registeraddSignaturesEventEventLogFilter(EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(ADDSIGNATURESEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,callback); }
Example 17
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registeraddSignaturesEventEventLogFilter(String fromBlock, String toBlock, List<String> otherTopcs, EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(ADDSIGNATURESEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,fromBlock,toBlock,otherTopcs,callback); }
Example 18
Source File: Ok.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registerTransEventEventLogFilter(EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(TRANSEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,callback); }
Example 19
Source File: Ok.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registerTransEventEventLogFilter(String fromBlock, String toBlock, List<String> otherTopcs, EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(TRANSEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,fromBlock,toBlock,otherTopcs,callback); }
Example 20
Source File: EvidenceSignersData.java From WeBASE-Front with Apache License 2.0 | 4 votes |
public void registernewEvidenceEventEventLogFilter(EventLogPushWithDecodeCallback callback) { String topic0 = EventEncoder.encode(NEWEVIDENCEEVENT_EVENT); registerEventLogPushFilter(ABI,BINARY,topic0,callback); }