pub trait TestClientBuilderExt<B>: Sized {
// Required methods
fn genesis_init_mut(&mut self) -> &mut GenesisParameters;
fn build_with_longest_chain(self) -> (Client<B>, LongestChain<B, Block>);
fn build_with_backend(self) -> (Client<B>, Arc<B>);
// Provided methods
fn set_heap_pages(self, heap_pages: u64) -> Self { ... }
fn add_extra_child_storage<K: Into<Vec<u8>>, V: Into<Vec<u8>>>(
self,
child_info: &ChildInfo,
key: K,
value: V,
) -> Self { ... }
fn add_extra_storage<K: Into<Vec<u8>>, V: Into<Vec<u8>>>(
self,
key: K,
value: V,
) -> Self { ... }
fn build(self) -> Client<B> { ... }
}
Expand description
A test-runtime
extensions to TestClientBuilder
.
Required Methods§
sourcefn genesis_init_mut(&mut self) -> &mut GenesisParameters
fn genesis_init_mut(&mut self) -> &mut GenesisParameters
Returns a mutable reference to the genesis parameters.
sourcefn build_with_longest_chain(self) -> (Client<B>, LongestChain<B, Block>)
fn build_with_longest_chain(self) -> (Client<B>, LongestChain<B, Block>)
Build the test client and longest chain selector.
sourcefn build_with_backend(self) -> (Client<B>, Arc<B>)
fn build_with_backend(self) -> (Client<B>, Arc<B>)
Build the test client and the backend.
Provided Methods§
sourcefn set_heap_pages(self, heap_pages: u64) -> Self
fn set_heap_pages(self, heap_pages: u64) -> Self
Override the default value for Wasm heap pages.
sourcefn add_extra_child_storage<K: Into<Vec<u8>>, V: Into<Vec<u8>>>(
self,
child_info: &ChildInfo,
key: K,
value: V,
) -> Self
fn add_extra_child_storage<K: Into<Vec<u8>>, V: Into<Vec<u8>>>( self, child_info: &ChildInfo, key: K, value: V, ) -> Self
Object Safety§
This trait is not object safe.