我的solidity合约事件如下:
我用 nervosj 代码监听 ContractInstantiation 事件代码如下:
Event event = new Event("ContractInstantiation",
Arrays.<TypeReference<?>>asList(new TypeReference<Address>() {}),
Arrays.<TypeReference<?>>asList(new TypeReference<Address>() {}));
final AppFilter filter = new AppFilter(DefaultBlockParameterName.EARLIEST,
DefaultBlockParameterName.LATEST, contractAddress);
org.nervos.appchain.protocol.core.methods.response.AppFilter responseFilter
= service.appNewFilter(filter).send();
String filterId = responseFilter.getFilterId().toString();
System.out.println("Filter Id for new filter: " + filterId);
System.out.println("\nget history logs by \"getFilterLogs\"");
List<ContractInstantiationEventResponse> list = getFilterLogs(event, filter);
for (ContractInstantiationEventResponse response : list) {
System.out.println("indexedValue: " + response.indexedValue
+ " nonIndexedValue: " + response.nonIndexedValue);
}
List<ContractInstantiationEventResponse> responses = getFilterChanges(event, filterId);
for (ContractInstantiationEventResponse response : responses) {
System.out.println("indexedValue: " + response.indexedValue
+ " nonIndexedValue: " + response.nonIndexedValue);
}
问题:代码中 new Event(name,indexedParameters,nonIndexedParameters) 的indexedParameters、nonIndexedParameters是指什么啊,对应我的ContractInstantiation事件该传入怎样的indexedParameters、nonIndexedParameters呢?