Skip to content

v0.5.22

Compare
Choose a tag to compare
@maoueh maoueh released this 26 Aug 13:07
  • 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())]))
      });