Crate pint_runtime[−][src]
Modules
Fee types used in PINT pallets
Opaque types. These are used by the CLI to instantiate machinery that don’t need to know the specifics of the runtime. They can then be made to be agnostic over specific formats of data like extrinsics, allowing for them to continue syncing the network through upgrades to even the core data structures.
This contains shared traits that are used in multiple pallets to prevent circular dependencies
Shareable PINT types
Macros
Construct a runtime, with the given name and the given pallets.
Create a type which implements the Contains
trait for a particular type with syntax similar
to matches!
.
Macro for easily creating a new implementation of both the Get
and Contains
traits. Use
exactly as with parameter_types
, only the type must be Ord
.
Create new implementations of the Get
trait.
Structs
Defines an asset pair identifier
Represents an asset and its proportion in the value of the index
Importing a block with 0 txs takes ~5 ms
Same as Polkadot Relay Chain.
Executing 10,000 System remarks (no-op) txs takes ~1.26 seconds -> ~125 µs per tx
Implementor of WeightToFeePolynomial
that maps one unit of weight to one unit of fee.
Trivial utility for implementing Contains
/OrderedMembership
with a Vec
.
Range of lockup period
The runtime origin type representing the origin of a call.
A pallet identifier. These are per pallet and should be stored in a registry somewhere.
Provides an implementation of PalletInfo
to provide information
about the pallet setup in the runtime.
The encoder to use when transacting pallet_proxy
calls
The encoder to use when transacting pallet_staking
calls
A fixed point representation of a number in the range [0, 1].
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.
Range of voting period
Enums
Defines the location of an asset Liquid implies it exists on a chain somewhere in the network and can be moved around SAFT implies the asset is a Simple Agreement for Future Tokens and the promised tokens are not able to be transferred or traded until some time in the future.
Contains one variant per dispatchable that can be called by an extrinsic.
A generalized group of dispatch types.
Contains one variant per dispatchable that can be called by an extrinsic.
Constants
We assume that ~10% of the block weight is consumed by on_initalize
handlers. This is used to limit the maximal weight of a single extrinsic.
We allow for 0.5 seconds of compute with a 6 second average block time.
This determines the average expected block time that we are targeting.
Blocks will be produced at a minimum duration defined by
SLOT_DURATION
. SLOT_DURATION
is picked up by pallet_timestamp
which is in turn picked up by pallet_aura
to implement fn slot_duration()
.
We allow Normal
extrinsics to fill up the block up to 75%, the rest can be
used by Operational extrinsics.
28 eras for unbonding (28 days). Six sessions in an era (24 hours)
Traits
Complex storage builder stuff.
A trait that is able to provide randomness.
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.
The type for looking up accounts. We don’t expect more than 4 billion of them, but you never know…
The address format for describing accounts.
All modules included in the runtime as a nested tuple of types. Excludes the System pallet.
All modules 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.
All pallets included in the runtime as a nested tuple of types.
Signed version of Balance
Identifier for an asset.
An Aura authority identifier using S/R 25519 as its crypto.
Balance of an account.
Block type.
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.
Origin that approved by committee
Digest item type.
Executive: handles dispatch to the various pallets.
Identifier for price feeds.
Origin either Root
or CommitteeOrigin
A hash of some data used by the chain.
Header type.
Block header type as expected by this runtime.
Index of a transaction in the chain.
Means for transacting assets on this chain.
Type for specifying how a MultiLocation
can be converted into an
AccountId
. This is used when determining ownership of accounts for asset
transacting and when attempting to use XCM Transact
in order to determine
the dispatch Origin.
Index of a transaction in the chain. 32-bit should be plenty.
The type to represent asset prices
Identifier for a SAFT
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.
Unchecked extrinsic type as expected by this runtime.
Value type for price feeds.
Numeric range of a transaction weight.
This is the type we use to convert an (incoming) XCM origin into a local Origin
instance,
ready for dispatching a transaction with Xcm’s Transact
. There is an OriginKind
which can
biases the kind of local Origin
it will become.
The means for routing XCM messages which are not for local execution into the right message queues.