From e0a5b0b6e3ab3d55f85fe3b4a45a8c6c116e6b7d Mon Sep 17 00:00:00 2001 From: Joshua Oladele Date: Thu, 9 May 2024 08:54:30 +0100 Subject: [PATCH] Add prelude for implicit imports --- chaindexing/src/lib.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/chaindexing/src/lib.rs b/chaindexing/src/lib.rs index ddda3e2..dfde88b 100644 --- a/chaindexing/src/lib.rs +++ b/chaindexing/src/lib.rs @@ -223,3 +223,21 @@ fn get_tasks_runner( } ChaindexingNodeTasksRunner { config } } + +pub mod prelude { + pub use crate::augmenting_std::{async_trait, serde}; + pub use crate::chains::{Chain, ChainId}; + pub use crate::config::{Config, OptimizationConfig}; + pub use crate::contracts::{Contract, ContractAddress, EventAbi}; + pub use crate::events::{Event, EventParam}; + pub use crate::handlers::{ + PureHandler as EventHandler, PureHandlerContext as EventContext, SideEffectHandler, + SideEffectHandlerContext as SideEffectContext, + }; + pub use crate::nodes::NodeHeartbeat as Heartbeat; + pub use crate::states::{ + ChainState, ContractState, Filters, MultiChainState, StateMigrations, Updates, + }; + pub use crate::Address; + pub use ethers::types::{I256, U256}; +}