referrerpolicy=no-referrer-when-downgrade

Crate cumulus_test_client

Source
Expand description

A Cumulus test client.

Re-exports§

pub use cumulus_test_runtime as runtime;

Modules§

client
Substrate Client and associated logic.
client_ext
Client extension for tests.
sc_client_db
Client backend that is backed by a database.
sc_executor
A crate that provides means of executing/dispatching calls into the runtime.
sp_consensus
Common utilities for building and using consensus engines in substrate.

Structs§

BlockBuilderAndSupportData
A struct containing a block builder and support data required to build test scenarios.
BlockData
Parachain block data.
ExecutionExtensions
A producer of execution extensions for offchain calls.
GenesisParameters
Parameters of test-client builder with test-runtime.
HeadData
Parachain head data included in the chain.
RpcHandlers
A running RPC service that can perform in-memory RPC queries.
RpcTransactionError
An error for when the RPC call fails.
RpcTransactionOutput
The output of an RPC transaction.
Storage
Struct containing data needed for a storage.
StorageChild
Child trie storage data.
ValidationParams
Validation parameters for evaluating the parachain validity function.
ValidationResult
The result of parachain validation.
WasmExecutor
An abstraction over Wasm code executor. Supports selecting execution backend and manages runtime cache.

Enums§

BlockOrigin
Block data origin.
BlocksPruning
Block pruning settings.
Ed25519Keyring
Set of test accounts.
Sr25519Keyring
Set of test accounts.
WasmExecutionMethod
Specification of different methods of executing the runtime Wasm code.

Traits§

BlockchainEventsExt
An extension trait for BlockchainEvents.
BuildParachainBlockData
Extension trait for the BlockBuilder to build directly a ParachainBlockData.
ClientBlockImportExt
Extension trait for a test client around block importing.
ClientExt
Extension trait for a test client.
DefaultTestClientBuilderExt
A TestClientBuilder with default backend and executor.
GenesisInit
A genesis storage initialization trait.
InitBlockBuilder
An extension for the Cumulus test client to init a block builder.
Keystore
Something that generates, stores and provides access to secret keys.
RpcHandlersExt
An extension trait for RpcHandlers.
TestClientBuilderExt
A test-runtime extensions to TestClientBuilder.

Functions§

generate_extrinsic
Generate an extrinsic from the provided function call, origin and Client.
generate_extrinsic_with_pair
Create a signed extrinsic from a runtime call and sign with the given key pair.
generate_unsigned
Create an unsigned extrinsic from a runtime call.
seal_block
Seals the given block with an AURA seal.
seal_parachain_block_data
Seals all the blocks in the given ParachainBlockData with an AURA seal.
transfer
Transfer some token from one account to another using a provided test Client.
validate_block
Call validate_block in the given wasm_blob.

Type Aliases§

Backend
Test client database backend.
BadBlocks
Known bad block hashes.
Client
Test client type with LocalExecutor and generic Backend.
Executor
Test client executor.
ExecutorResult
Result type alias.
ForkBlocks
Expected hashes of blocks at given heights.
KeystorePtr
A shared pointer to a keystore implementation.
LongestChain
LongestChain type for the test runtime/client.
ParachainBlockData
TestClientBuilder
Test client builder for Cumulus