For every event we track, we need the proper configuration format. This allows for flexible and precise point allocation based on blockchain interactions.

Points are issued retroactively. If new conditions are added, users will be rewarded retroactively according to the specified block ranges or timestamps.

How It Works

  1. The system scans blockchain logs for events matching the specified criteria (contract address, chain ID, method, etc.).
  2. When a matching event is found, it extracts the relevant data using the configured fields.
  3. Points are calculated based on either the fixed points value or the math_expr formula.
  4. The calculated points are attributed to the address specified by beneficiary_field.
  5. Additional filters (equivalence_filters) can be applied to match specific event parameters.
  6. Time ranges can be set using block numbers or timestamps for precise control over event tracking periods.

FAQ

The math_expr field takes in a mathematical expression where x inside the expression denotes the value of the decoded_log_field.

Usage Tips

  • Use start_block_number and end_block_number or start_timestamp and end_timestamp to define specific periods for event tracking.
  • The math_expr field allows for dynamic point calculation based on event data. Use decoded_log_field to specify which event field to use in the calculation.
  • For fixed point rewards, simply use the points field instead of math_expr.
  • The equivalence_filters can be used to create more specific conditions for point allocation within a single event type.
  • Ensure the event_string matches exactly with the smart contract’s event definition to guarantee correct event parsing.

Configuration Fields