Crate framenode_runtime
source ·Re-exports
pub use assets;
pub use eth_bridge;
pub use frame_system;
pub use multicollateral_bonding_curve_pool;
pub use order_book;
pub use trading_pair;
pub use xst;
pub use oracle_types::*;
Modules
- Constant values used within the runtime.
- 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 datastructures.
- Types used by oracle related pallets
Macros
- Construct a runtime, with the given name and the given pallets.
- Create new implementations of the
Get
trait.
Structs
- Wrapper type which extends Balance serialization, used for json in RPC’s.
- Time to execute an empty block. Calculated by multiplying the Average with
1.0
and adding0
. - Block weights base values and limits.
- The numbers configured here could always be more than the the maximum limits of staking pallet to ensure election snapshot will not run out of memory. For now, we set them to smaller values since the staking is bounded and the weight pipeline takes hours for this single pallet.
- 13 members initially, to be increased to 23 eventually.
- An Ethereum block header.
- Generalized filtration mechanism for listing liquidity sources.
- Identification of liquidity source.
- Setup election pallet to support maximum winners upto 1200. This will mean Staking Pallet cannot have active validators higher than this count.
- … and all of the validators as electable targets. Whilst this is the case, we cannot and shall not increase the size of the validator intentions.
- We take the top 12500 nominators as electing voters..
- A limit for off-chain phragmen unsigned solution length.
- A limit for off-chain phragmen unsigned solution submission.
- Used the compare the privilege of an origin inside the scheduler.
- Provides an implementation of
PalletInfo
to provide information about the pallet setup in the runtime. - 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.
- A reasonable benchmarking config for staking pallet.
- Amount of output tokens from either price request or actual exchange.
- An implementation of
CurrencyToVote
tailored for chain’s that have a balance type of u128.
Enums
- Contains one variant per dispatchable that can be called by an extrinsic.
- A generalized group of dispatch types.
- Enumaration of all available liquidity sources.
- Indicates the initial status of the staker.
- Used to identify intention of caller either to transfer tokens based on exact input amount or exact output amount.
- Used to identify intention of caller to indicate desired input amount or desired output amount. Similar to SwapAmount, does not hold value in order to be used in external API.
- Contains one variant per dispatchable that can be called by an extrinsic.
Constants
- This runtime version.
Traits
- Trait to provide info about assets
- Complex storage builder stuff.
- A trait for querying whether a type can be said to “contain” a value.
- Trait to provide DEXInfo
- Abstract trait to get data type from generic pair name and data.
- Something which can compute and check proofs of a historical key owner and return full identification data of that key owner.
- Indicates that particular object can be used to perform exchanges.
- Something that can convert the current multiplier to the next one.
- General trait for passing pswap amount burned information to required pallets.
- Handler for when some currency “account” decreased in balance for some reason.
- General trait for passing on the amount of burned VAL.
- A trait that is able to provide randomness.
- A type that can be used as a scheduler.
- A trait for working with macro-generated storage values under the substrate storage API.
Functions
- Print out the debuggable type.
- Create fraction as Fixed from BasisPoints value.
- The version infromation 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.
- 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.
- Type definition representing financial basis points (1bp is 0.01%)
- Identity of a BEEFY authority using ECDSA as its crypto.
- 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.
- Identification of DEX.
- Digest item type.
- Executive: handles dispatch to the various modules.
- Basic type representing assets quantity.
- A hash of some data used by the chain.
- Block header type as expected by this runtime.
- An i’m online identifier using sr25519 as its crypto.
- Index of a transaction in the chain.
- An identifier for a lock. Used for disambiguating different locks so that they can be individually replaced or removed.
- Fee multiplier.
- The accuracy type used for genesis election provider;
- 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.
- Payload data to be signed when making signed transaction from off-chain workers, inside
create_transaction
function. - Unchecked extrinsic type as expected by this runtime.