Package score.annotation
Annotation Type EventLog
-
@Target(METHOD) public @interface EventLog
Annotation that can be used to record logs in its TxResult aseventLogs
.If the value of an element, named
indexed
, is set, the designated number of parameters of the applied method declaration will be indexed in the order and included in the Bloom filter. Indexed parameters and non-indexed parameters are separately stored in the TxResult. At most 3 parameters can be indexed, and the value ofindexed
cannot exceed the number of parameters. Possible data types for method parameters areint
,boolean
,byte[]
,BigInteger
,String
, andAddress
.It is recommended to declare a method without a implementation body. Even if the applied method has the body, it does not be executed in runtime.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
indexed
The number of indexed parameters of the applied method declaration (maximum 3).
-