Crate kintsugi_runtime_parachain
source ·Expand description
The kintsugi runtime. This can be compiled with #[no_std]
, ready for Wasm.
Re-exports
pub use btc_relay::bitcoin;
pub use primitives;
pub use primitives::CurrencyId::ForeignAsset;
pub use primitives::CurrencyId::LendToken;
pub use primitives::CurrencyId::Token;
pub use constants::currency::*;
pub use constants::time::*;
Modules
- A set of constant values used in the kintsugi runtime.
Macros
- Construct a runtime, with the given name and the given pallets.
- Create new implementations of the
Get
trait.
Structs
- The adjustment variable of the runtime. Higher values will cause
TargetBlockFullness
to change the fees more rapidly. - Data describing the asset properties.
- a wrapper around a balance, used in RPC to workaround a bug where using u128 in runtime-apis fails. See https://github.com/paritytech/substrate/issues/4641
- Const getter for a basic type.
- A fixed point number representation in the range. Fixed Point 128 bits unsigned, range = [0.000000000000000000, 340282366920938463463.374607431768211455]
- Implementor of
WeightToFee
that maps one unit of weight to one unit of fee. - Minimum amount of the multiplier. This value cannot be too low. A test case should ensure that combined with
AdjustmentVariable
, we can recover from the minimum. Seemultiplier_can_grow_from_zero
. - This value increases the priority of
Operational
transactions by adding a “virtual tip” that’s equal to theOperationalFeeMultiplier * final_fee
. - Provides an implementation of
PalletInfo
to provide information about the pallet setup in the runtime. - A fixed point representation of a number in the range [0, 1].
- A fixed point representation of a number in the range [0, 1].
- By default, Substrate uses RocksDB, so this will be the weight used throughout the runtime.
- Implements all runtime apis for the client side.
- The runtime origin type representing the origin of a call.
- The portion of the
NORMAL_DISPATCH_RATIO
that we adjust the fees with. Blocks filled less than this will decrease the weight and more will increase.
Enums
- Contains a variant per dispatchable extrinsic that this pallet has.
- A generalized group of dispatch types.
- A [
Contains
] implementation that contains every value. - The
Event
enum of this pallet - A [
Contains
] implementation that contains no value. - The type used to represent the kinds of proxying allowed.
- 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.
- Contains a variant per dispatchable extrinsic that this pallet has.
Constants
- We allow for 0.5 seconds of compute with a 12 second average block time.
- Target Spacing: 10 minutes (600 seconds)
- This runtime version.
Traits
- Complex storage builder stuff.
- A trait for querying a single value from a type.
- Something which can compute and check proofs of a historical key owner and return full identification data of that key owner.
- A trait for working with macro-generated storage values under the substrate storage API.
Functions
- The version information used to identify this runtime when compiled natively.
Type Definitions
- Some way of identifying an account on the chain. We intentionally make it equivalent to the public key of our transaction signing scheme.
- AllPalletsDeprecatedAll pallets included in the runtime as a nested tuple of types.
- AllPalletsReversedWithSystemFirstDeprecatedAll pallets included in the runtime as a nested tuple of types in reversed order. With the system pallet first.
- All pallets included in the runtime as a nested tuple of types.
- AllPalletsWithSystemReversedDeprecatedAll pallets included in the runtime as a nested tuple of types in reversed order.
- All pallets included in the runtime as a nested tuple of types. Excludes the System pallet.
- AllPalletsWithoutSystemReversedDeprecatedAll pallets included in the runtime as a nested tuple of types in reversed order. Excludes the System pallet.
- An Aura authority identifier using S/R 25519 as its crypto.
- Balance of an account.
- Block type as expected by this runtime.
- BlockId type as expected by this runtime.
- An index to a block.
- Extrinsic type that has already been checked.
- We allow root and the Relay Chain council to execute privileged collator selection operations.
- Executive: handles dispatch to the various modules.
- GenesisConfigDeprecated
- A hash of some data used by the chain.
- Block header type as expected by this runtime.
- An identifier for a lock. Used for disambiguating different locks so that they can be individually replaced or removed.
- An instant or duration in time.
- Index of a transaction in the chain. 32-bit should be plenty.
- Alias to 512-bit hash when used in the context of a transaction signature on the chain.
- A Block signed with a Justification
- The SignedExtension to the basic transaction logic.
- The signed fixed point type.
- The
Inner
type of theSignedFixedPoint
. - Unchecked extrinsic type as expected by this runtime.
- The unsigned fixed point type.
- The
Inner
type of theUnsignedFixedPoint
.