mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: re-export test types (#8936)
This commit is contained in:
@ -136,13 +136,18 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
type TmpDB = Arc<TempDatabase<DatabaseEnv>>;
|
||||
type Adapter = NodeAdapter<
|
||||
/// A shared [`TempDatabase`] used for testing
|
||||
pub type TmpDB = Arc<TempDatabase<DatabaseEnv>>;
|
||||
/// The [`NodeAdapter`] for the [`TestExExContext`]. Contains type necessary to
|
||||
/// boot the testing environment
|
||||
pub type Adapter = NodeAdapter<
|
||||
RethFullAdapter<TmpDB, TestNode>,
|
||||
<<TestNode as Node<FullNodeTypesAdapter<TestNode, TmpDB, BlockchainProvider<TmpDB>>>>::ComponentsBuilder as NodeComponentsBuilder<
|
||||
RethFullAdapter<TmpDB, TestNode>,
|
||||
>>::Components,
|
||||
>;
|
||||
/// An [`ExExContext`] using the [`Adapter`] type.
|
||||
pub type TestExExContext = ExExContext<Adapter>;
|
||||
|
||||
/// A helper type for testing Execution Extensions.
|
||||
#[derive(Debug)]
|
||||
|
||||
Reference in New Issue
Block a user