feat: re-export test types (#8936)

This commit is contained in:
James Prestwich
2024-06-18 12:24:44 -04:00
committed by GitHub
parent 63248bc4ec
commit 8d4cf43d6e

View File

@ -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)]