Expand description
A Polkadot test client.
This test client is using the Polkadot test runtime.
Re-exports§
pub use polkadot_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§
- Backend
- Disk backend.
- Execution
Extensions - A producer of execution extensions for offchain calls.
- Genesis
Parameters - Parameters of test-client builder with test-runtime.
- RpcHandlers
- A running RPC service that can perform in-memory RPC queries.
- RpcTransaction
Error - An error for when the RPC call fails.
- RpcTransaction
Output - The output of an RPC transaction.
- Storage
- Struct containing data needed for a storage.
- Storage
Child - Child trie storage data.
- Wasm
Executor - An abstraction over Wasm code executor. Supports selecting execution backend and manages runtime cache.
Enums§
- Block
Origin - Block data origin.
- Blocks
Pruning - Block pruning settings.
- Ed25519
Keyring - Set of test accounts.
- Sr25519
Keyring - Set of test accounts.
- Wasm
Execution Method - Specification of different methods of executing the runtime Wasm code.
Traits§
- Block
Builder Ext - Polkadot specific extensions for the
BlockBuilder
. - Blockchain
Events Ext - An extension trait for
BlockchainEvents
. - Client
Block Import Ext - Extension trait for a test client around block importing.
- Client
Ext - Extension trait for a test client.
- Default
Test Client Builder Ext - A
TestClientBuilder
with default backend and executor. - Genesis
Init - A genesis storage initialization trait.
- Init
Polkadot Block Builder - An extension for the test client to initialize a Polkadot specific block builder.
- Keystore
- Something that generates, stores and provides access to secret keys.
- RpcHandlers
Ext - An extension trait for
RpcHandlers
. - Test
Client Builder Ext - A
test-runtime
extensions toTestClientBuilder
.
Functions§
- construct_
extrinsic - Construct an extrinsic that can be applied to the test runtime.
- construct_
transfer_ extrinsic - Construct a transfer extrinsic.
Type Aliases§
- BadBlocks
- Known bad block hashes.
- Client
- The client type being used by the test service.
- Executor
- Test client executor.
- Fork
Blocks - Expected hashes of blocks at given heights.
- Full
Backend - Keystore
Ptr - A shared pointer to a keystore implementation.
- Longest
Chain LongestChain
type for the test runtime/client.- Test
Client Builder - Test client builder for Polkadot.