diff --git a/crates/bin/pindexer/src/indexer_ext.rs b/crates/bin/pindexer/src/indexer_ext.rs new file mode 100644 index 0000000000..380eeca5f9 --- /dev/null +++ b/crates/bin/pindexer/src/indexer_ext.rs @@ -0,0 +1,9 @@ +pub trait IndexerExt: Sized { + fn with_default_penumbra_app_views(self) -> Self; +} + +impl IndexerExt for cometindex::Indexer { + fn with_default_penumbra_app_views(self) -> Self { + self.with_index(crate::shielded_pool::fmd::ClueSet {}) + } +} diff --git a/crates/bin/pindexer/src/lib.rs b/crates/bin/pindexer/src/lib.rs index fb66be36dc..d174c59f5e 100644 --- a/crates/bin/pindexer/src/lib.rs +++ b/crates/bin/pindexer/src/lib.rs @@ -1,3 +1,4 @@ pub use cometindex::{AppView, Indexer}; +mod indexer_ext; pub mod shielded_pool;