v0.5.22
-
Added ExprMatcher, and constructor(s) expr_matcher and ExprMatcher::new. This can be used to parse an expression once and re-used it to run multiple matches_keys against different keys:
let matcher = substreams::expr_matcher(&query); transactions.flat_map(|trx| { trx.instructions() .filter(|view| matcher.matches_keys(&vec![format!("program:{}", view.program_id().to_string())])) });