Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for "all_of (predicate[])" usage #184

Closed
ravishankarvkp opened this issue Mar 2, 2022 · 3 comments · Fixed by #185
Closed

Example for "all_of (predicate[])" usage #184

ravishankarvkp opened this issue Mar 2, 2022 · 3 comments · Fixed by #185
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@ravishankarvkp
Copy link

thanks for this great tool ! I've played around with it a little bit and it looks awesome. I no longer have to run expensive cardano-db-sync to query the status of particular asset :)

For my use-case, I need to filter "transactions" that carry a specific asset "ex: LQ tokens" and need to construct a real-time view of the token distribution in the ledger. I realize, I need to make use of the below predicate to add both Tx and Policy constraints. However, unsure how to configure an array of predicates.

  • "all_of (predicate[]): This predicate will yield true when all of the predicates in the argument yields true."

It would be great, if you could provide an example for "all_of ()" usage here - https://txpipe.github.io/oura/filters/selection.html

thanks much !

@scarmuega
Copy link
Member

@ravishankarvkp yes, agreed, toml format is hard for these nested structures. I'll add an example to docs shortly.

@scarmuega scarmuega added the documentation Improvements or additions to documentation label Mar 2, 2022
@scarmuega scarmuega self-assigned this Mar 2, 2022
@scarmuega
Copy link
Member

@ravishankarvkp we've added some more examples here:
https://txpipe.github.io/oura/filters/selection.html#examples

Let us know if they make sense.

@ravishankarvkp
Copy link
Author

Thanks @scarmuega ! this helps !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants