Skip to content

Commit

Permalink
Add prelude for implicit imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurshsmith committed May 9, 2024
1 parent 9553c1f commit e0a5b0b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions chaindexing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,21 @@ fn get_tasks_runner<S: Sync + Send + Debug + Clone + 'static>(
}
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};
}

0 comments on commit e0a5b0b

Please sign in to comment.