paradigmxyz / artemis

A simple, modular, and fast framework for writing MEV bots in Rust.
Apache License 2.0
2.31k stars 442 forks source link

Update parameter for Collector #70

Open true-eye opened 7 months ago

true-eye commented 7 months ago

I have two questions

  1. Can Collectors have parameters? Right now, the example collectors just fetch the latest block hash or orders without any parameters. But for me, I need to subscribe to a geyser which requires some parameters for filtering transactions.

  2. Can we update Collectors' parameters to filter different transactions in other Collectors? So what I'm trying to do is the following. I want to collect all transactions related to one address. This can be done by a Collector. But the address can be changed by the time. So I want to change that real time and I don't want to destroy & create a new Collector.

How can I do this?