Skip to content

Commit 7b27523

Browse files
committed
Create Event Signature
1 parent 10cbb32 commit 7b27523

File tree

1 file changed

+10
-1
lines changed
  • abi-parser/src/main/java/com/openelements/hiero/smartcontract/abi/model

1 file changed

+10
-1
lines changed

abi-parser/src/main/java/com/openelements/hiero/smartcontract/abi/model/AbiEvent.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,16 @@ public AbiEntryType type() {
1919
return AbiEntryType.EVENT;
2020
}
2121

22-
@NonNull
22+
public List<AbiParameter> getIndexedInputParameters() {
23+
return inputs.stream().filter(AbiParameter::indexed).toList();
24+
}
25+
26+
public List<AbiParameter> getNonIndexedInputParameters() {
27+
return inputs.stream().filter(parameter -> !parameter.indexed()).toList();
28+
}
29+
30+
31+
@NonNull
2332
public String createEventSignature() {
2433
final List<String> canonicalParameterTypes = inputs.stream().map(AbiParameter::getCanonicalType).toList();
2534
return name + "(" + String.join(",", canonicalParameterTypes) + ")";

0 commit comments

Comments
 (0)