referrerpolicy=no-referrer-when-downgrade

Type Alias substrate_test_runtime_client::TestClientBuilder

source ·
pub type TestClientBuilder<E, B> = TestClientBuilder<Block, E, B, GenesisParameters>;
Expand description

A TestClient with test-runtime builder.

Aliased Type§

struct TestClientBuilder<E, B> { /* private fields */ }

Trait Implementations§

source§

impl DefaultTestClientBuilderExt for TestClientBuilder<ExecutorDispatch, Backend>

source§

fn new() -> Self

Create new TestClientBuilder
source§

impl<B> TestClientBuilderExt<B> for TestClientBuilder<LocalCallExecutor<Block, B, WasmExecutor>, B>
where B: Backend<Block> + 'static,

source§

fn genesis_init_mut(&mut self) -> &mut GenesisParameters

Returns a mutable reference to the genesis parameters.
source§

fn build_with_longest_chain(self) -> (Client<B>, LongestChain<B, Block>)

Build the test client and longest chain selector.
source§

fn build_with_backend(self) -> (Client<B>, Arc<B>)

Build the test client and the backend.
source§

fn set_heap_pages(self, heap_pages: u64) -> Self

Override the default value for Wasm heap pages.
source§

fn add_extra_child_storage<K: Into<Vec<u8>>, V: Into<Vec<u8>>>( self, child_info: &ChildInfo, key: K, value: V, ) -> Self

Add an extra value into the genesis storage. Read more
source§

fn add_extra_storage<K: Into<Vec<u8>>, V: Into<Vec<u8>>>( self, key: K, value: V, ) -> Self

Add an extra child value into the genesis storage. Read more
source§

fn build(self) -> Client<B>

Build the test client.