Java Code Examples for org.fisco.bcos.web3j.tx.Contract#EventValuesWithLog
The following examples show how to use
org.fisco.bcos.web3j.tx.Contract#EventValuesWithLog .
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: TableTest.java From web3sdk with Apache License 2.0 | 6 votes |
public List<SelectResultEventResponse> getSelectResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(SELECTRESULT_EVENT, transactionReceipt); ArrayList<SelectResultEventResponse> responses = new ArrayList<SelectResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { SelectResultEventResponse typedResponse = new SelectResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.name = (byte[]) eventValues.getNonIndexedValues().get(0).getValue(); typedResponse.item_id = (BigInteger) eventValues.getNonIndexedValues().get(1).getValue(); typedResponse.item_name = (byte[]) eventValues.getNonIndexedValues().get(2).getValue(); responses.add(typedResponse); } return responses; }
Example 2
Source File: Evidence.java From evidenceSample with Apache License 2.0 | 6 votes |
public List<ErrorAddSignaturesEventEventResponse> getErrorAddSignaturesEventEvents(TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(ERRORADDSIGNATURESEVENT_EVENT, transactionReceipt); ArrayList<ErrorAddSignaturesEventEventResponse> responses = new ArrayList<ErrorAddSignaturesEventEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { ErrorAddSignaturesEventEventResponse typedResponse = new ErrorAddSignaturesEventEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.evi = (String) eventValues.getNonIndexedValues().get(0).getValue(); typedResponse.info = (String) eventValues.getNonIndexedValues().get(1).getValue(); typedResponse.id = (String) eventValues.getNonIndexedValues().get(2).getValue(); typedResponse.v = (BigInteger) eventValues.getNonIndexedValues().get(3).getValue(); typedResponse.r = (byte[]) eventValues.getNonIndexedValues().get(4).getValue(); typedResponse.s = (byte[]) eventValues.getNonIndexedValues().get(5).getValue(); typedResponse.addr = (String) eventValues.getNonIndexedValues().get(6).getValue(); responses.add(typedResponse); } return responses; }
Example 3
Source File: Evidence.java From WeBASE-Front with Apache License 2.0 | 6 votes |
public List<AddRepeatSignaturesEventEventResponse> getAddRepeatSignaturesEventEvents(TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(ADDREPEATSIGNATURESEVENT_EVENT, transactionReceipt); ArrayList<AddRepeatSignaturesEventEventResponse> responses = new ArrayList<AddRepeatSignaturesEventEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { AddRepeatSignaturesEventEventResponse typedResponse = new AddRepeatSignaturesEventEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.evi = (String) eventValues.getNonIndexedValues().get(0).getValue(); typedResponse.info = (String) eventValues.getNonIndexedValues().get(1).getValue(); typedResponse.id = (String) eventValues.getNonIndexedValues().get(2).getValue(); typedResponse.v = (BigInteger) eventValues.getNonIndexedValues().get(3).getValue(); typedResponse.r = (byte[]) eventValues.getNonIndexedValues().get(4).getValue(); typedResponse.s = (byte[]) eventValues.getNonIndexedValues().get(5).getValue(); responses.add(typedResponse); } return responses; }
Example 4
Source File: TableTest.java From web3sdk with Apache License 2.0 | 6 votes |
public List<SelectResultEventResponse> getSelectResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(SELECTRESULT_EVENT, transactionReceipt); ArrayList<SelectResultEventResponse> responses = new ArrayList<SelectResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { SelectResultEventResponse typedResponse = new SelectResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.name = (byte[]) eventValues.getNonIndexedValues().get(0).getValue(); typedResponse.item_id = (BigInteger) eventValues.getNonIndexedValues().get(1).getValue(); typedResponse.item_name = (byte[]) eventValues.getNonIndexedValues().get(2).getValue(); responses.add(typedResponse); } return responses; }
Example 5
Source File: MixContract.java From web3sdk with Apache License 2.0 | 6 votes |
public List<ReadResultEventResponse> getReadResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(READRESULT_EVENT, transactionReceipt); ArrayList<ReadResultEventResponse> responses = new ArrayList<ReadResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { ReadResultEventResponse typedResponse = new ReadResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.name = (byte[]) eventValues.getNonIndexedValues().get(0).getValue(); typedResponse.item_id = (BigInteger) eventValues.getNonIndexedValues().get(1).getValue(); typedResponse.item_name = (byte[]) eventValues.getNonIndexedValues().get(2).getValue(); responses.add(typedResponse); } return responses; }
Example 6
Source File: Evidence.java From evidenceSample with Apache License 2.0 | 6 votes |
public List<AddSignaturesEventEventResponse> getAddSignaturesEventEvents(TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(ADDSIGNATURESEVENT_EVENT, transactionReceipt); ArrayList<AddSignaturesEventEventResponse> responses = new ArrayList<AddSignaturesEventEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { AddSignaturesEventEventResponse typedResponse = new AddSignaturesEventEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.evi = (String) eventValues.getNonIndexedValues().get(0).getValue(); typedResponse.info = (String) eventValues.getNonIndexedValues().get(1).getValue(); typedResponse.id = (String) eventValues.getNonIndexedValues().get(2).getValue(); typedResponse.v = (BigInteger) eventValues.getNonIndexedValues().get(3).getValue(); typedResponse.r = (byte[]) eventValues.getNonIndexedValues().get(4).getValue(); typedResponse.s = (byte[]) eventValues.getNonIndexedValues().get(5).getValue(); responses.add(typedResponse); } return responses; }
Example 7
Source File: Evidence.java From evidenceSample with Apache License 2.0 | 6 votes |
public List<ErrorRepeatSignaturesEventEventResponse> getErrorRepeatSignaturesEventEvents(TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(ERRORREPEATSIGNATURESEVENT_EVENT, transactionReceipt); ArrayList<ErrorRepeatSignaturesEventEventResponse> responses = new ArrayList<ErrorRepeatSignaturesEventEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { ErrorRepeatSignaturesEventEventResponse typedResponse = new ErrorRepeatSignaturesEventEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.evi = (String) eventValues.getNonIndexedValues().get(0).getValue(); typedResponse.id = (String) eventValues.getNonIndexedValues().get(1).getValue(); typedResponse.v = (BigInteger) eventValues.getNonIndexedValues().get(2).getValue(); typedResponse.r = (byte[]) eventValues.getNonIndexedValues().get(3).getValue(); typedResponse.s = (byte[]) eventValues.getNonIndexedValues().get(4).getValue(); typedResponse.addr = (String) eventValues.getNonIndexedValues().get(5).getValue(); responses.add(typedResponse); } return responses; }
Example 8
Source File: MixContract.java From web3sdk with Apache License 2.0 | 5 votes |
public List<CreateResultEventResponse> getCreateResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(CREATERESULT_EVENT, transactionReceipt); ArrayList<CreateResultEventResponse> responses = new ArrayList<CreateResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { CreateResultEventResponse typedResponse = new CreateResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.count = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }
Example 9
Source File: TableTest.java From web3sdk with Apache License 2.0 | 5 votes |
public List<RemoveResultEventResponse> getRemoveResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(REMOVERESULT_EVENT, transactionReceipt); ArrayList<RemoveResultEventResponse> responses = new ArrayList<RemoveResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { RemoveResultEventResponse typedResponse = new RemoveResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.count = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }
Example 10
Source File: EvidenceVerify.java From web3sdk with Apache License 2.0 | 5 votes |
public List<NewEvidenceEventEventResponse> getNewEvidenceEventEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(NEWEVIDENCEEVENT_EVENT, transactionReceipt); ArrayList<NewEvidenceEventEventResponse> responses = new ArrayList<NewEvidenceEventEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { NewEvidenceEventEventResponse typedResponse = new NewEvidenceEventEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.addr = (String) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }
Example 11
Source File: TableTest.java From web3sdk with Apache License 2.0 | 5 votes |
public List<CreateResultEventResponse> getCreateResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(CREATERESULT_EVENT, transactionReceipt); ArrayList<CreateResultEventResponse> responses = new ArrayList<CreateResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { CreateResultEventResponse typedResponse = new CreateResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.count = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }
Example 12
Source File: OkD.java From web3sdk with Apache License 2.0 | 5 votes |
public List<InsertResultEventResponse> getInsertResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(INSERTRESULT_EVENT, transactionReceipt); ArrayList<InsertResultEventResponse> responses = new ArrayList<InsertResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { InsertResultEventResponse typedResponse = new InsertResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.count = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }
Example 13
Source File: TableTest.java From web3sdk with Apache License 2.0 | 5 votes |
public List<UpdateResultEventResponse> getUpdateResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(UPDATERESULT_EVENT, transactionReceipt); ArrayList<UpdateResultEventResponse> responses = new ArrayList<UpdateResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { UpdateResultEventResponse typedResponse = new UpdateResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.count = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }
Example 14
Source File: MixContract.java From web3sdk with Apache License 2.0 | 5 votes |
public List<InsertResultEventResponse> getInsertResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(INSERTRESULT_EVENT, transactionReceipt); ArrayList<InsertResultEventResponse> responses = new ArrayList<InsertResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { InsertResultEventResponse typedResponse = new InsertResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.count = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }
Example 15
Source File: Ok.java From WeBASE-Front with Apache License 2.0 | 5 votes |
public List<TransEventEventResponse> getTransEventEvents(TransactionReceipt transactionReceipt) { List<EventValuesWithLog> valueList = extractEventParametersWithLog(TRANSEVENT_EVENT, transactionReceipt); ArrayList<TransEventEventResponse> responses = new ArrayList<TransEventEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { TransEventEventResponse typedResponse = new TransEventEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.num = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }
Example 16
Source File: TableTest.java From web3sdk with Apache License 2.0 | 5 votes |
public List<InsertResultEventResponse> getInsertResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(INSERTRESULT_EVENT, transactionReceipt); ArrayList<InsertResultEventResponse> responses = new ArrayList<InsertResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { InsertResultEventResponse typedResponse = new InsertResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.count = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }
Example 17
Source File: TableTest.java From web3sdk with Apache License 2.0 | 5 votes |
public List<RemoveResultEventResponse> getRemoveResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(REMOVERESULT_EVENT, transactionReceipt); ArrayList<RemoveResultEventResponse> responses = new ArrayList<RemoveResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { RemoveResultEventResponse typedResponse = new RemoveResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.count = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }
Example 18
Source File: TableTest.java From web3sdk with Apache License 2.0 | 5 votes |
public List<InsertResultEventResponse> getInsertResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(INSERTRESULT_EVENT, transactionReceipt); ArrayList<InsertResultEventResponse> responses = new ArrayList<InsertResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { InsertResultEventResponse typedResponse = new InsertResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.count = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }
Example 19
Source File: TableTest.java From web3sdk with Apache License 2.0 | 5 votes |
public List<RemoveResultEventResponse> getRemoveResultEvents( TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(REMOVERESULT_EVENT, transactionReceipt); ArrayList<RemoveResultEventResponse> responses = new ArrayList<RemoveResultEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { RemoveResultEventResponse typedResponse = new RemoveResultEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.count = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }
Example 20
Source File: Ok.java From WeBASE-Front with Apache License 2.0 | 5 votes |
public List<TransEventEventResponse> getTransEventEvents(TransactionReceipt transactionReceipt) { List<Contract.EventValuesWithLog> valueList = extractEventParametersWithLog(TRANSEVENT_EVENT, transactionReceipt); ArrayList<TransEventEventResponse> responses = new ArrayList<TransEventEventResponse>(valueList.size()); for (Contract.EventValuesWithLog eventValues : valueList) { TransEventEventResponse typedResponse = new TransEventEventResponse(); typedResponse.log = eventValues.getLog(); typedResponse.num = (BigInteger) eventValues.getNonIndexedValues().get(0).getValue(); responses.add(typedResponse); } return responses; }