Crate subspace_test_runtime
source ·Modules§
Structs§
- Use the consensus chain’s
Normal
extrinsics block size limit as the domain block size limit - Use the consensus chain’s
Normal
extrinsics block weight limit as the domain block weight limit - Implementation of [
pallet_transaction_payment::OnChargeTransaction
] that charges transaction fees and distributes storage/compute fees and tip separately. - Provides an implementation of
PalletInfo
to provide information about the pallet setup in the runtime. - Implements all runtime apis for the client side.
- The runtime origin type representing the origin of a call.
- We allow for 3.75 MiB for
Normal
extrinsic with 5 MiB maximum block length. - We allow for 2 seconds of compute with a 6 second average block time.
Enums§
- When to enable block/vote rewards
- The aggregated runtime call type.
- A reason for placing a freeze on funds.
- A reason for placing a hold on funds.
- An identifier for each lock placed on funds.
- A reason for slashing funds.
- An aggregation of all
Task
enums across all pallets included in the current runtime.
Constants§
- Subspace Credits have 18 decimal places.
- Since Subspace is probabilistic this is the average expected block time that we are targeting. Blocks will be produced at a minimum duration defined by
SLOT_DURATION
, but some slots will not be allocated to any farmer and hence no block will be produced. We expect to have this block time on average following the defined slot duration and the value ofc
configured for Subspace (where1 - c
represents the probability of a slot being empty). This value is only used indirectly to define the unit constants below that are expressed in blocks. The rest of the code should useSLOT_DURATION
instead (like the Timestamp pallet for calculating the minimum period). - The smallest unit of the token is called Shannon.
- One Subspace Credit.
Type Aliases§
- The address format for describing accounts.
- All pallets included in the runtime as a nested tuple of types.
- All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
- Block type as expected by this runtime.
- Executive: handles dispatch to the various modules.
- Block header type as expected by this runtime.
- The SignedExtension to the basic transaction logic.
- The payload being signed in transactions.
- Unchecked extrinsic type as expected by this runtime.