hirosystems / chainhook

Extract transactions from Stacks and Bitcoin and build event driven re-org resistant indexers and databases.
GNU General Public License v3.0
158 stars 65 forks source link

Allow regex for `contains` based chainhooks #348

Closed aulneau closed 1 year ago

aulneau commented 1 year ago

When creating a chainhook that listens for a print_event, it'd be great to be able to use regex to define the condition for contains.

Example: I'd like to create a print_event predicate that only listens for stack-extend or stack-increase but exclude stack-aggregation-*

LakshmiLavanyaKasturi commented 1 year ago

This is a WIP feature. @Ludo and @MicaiahReid, Please assign it back to me once the feature is developed and is ready for doc updates.

MicaiahReid commented 1 year ago

Hey @LakshmiLavanyaKasturi, this feature is ready to document now! I've added a test that demonstrates the new if_this condition here. Let me know if you have any questions!

LakshmiLavanyaKasturi commented 1 year ago

https://github.com/hirosystems/chainhook/pull/394

MicaiahReid commented 1 year ago

Completed by #394 and #380

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.1.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: