Expand description
Re-exports sp-weights
public API, and contains benchmarked weight constants specific to FRAME.
Modules§
- constants
- These constants are specific to FRAME, and the current implementation of its various components. For example: FRAME System, FRAME Executive, our FRAME support libraries, etc…
Structs§
- Constant
Multiplier - Implementor of
WeightToFee
that uses a constant multiplier. - FeePolynomial
- A list of coefficients that represent a polynomial.
- Fixed
Fee - Implementor of
WeightToFee
such that it maps any unit of weight to a fixed fee. - Identity
Fee - Implementor of
WeightToFee
that maps one unit of weight to one unit of fee. - Runtime
DbWeight - The weight of database operations that the runtime can invoke.
- Weight
- Weight
Meter - Meters consumed weight and a hard limit for the maximal consumable weight.
- Weight
ToFee Coefficient - One coefficient and its position in the
WeightToFee
.
Traits§
- Weight
ToFee - A trait that describes the weight to fee calculation.
- Weight
ToFee Polynomial - A trait that describes the weight to fee calculation as polynomial.
Type Aliases§
- NoFee
- An implementation of
WeightToFee
that collects no fee. - Weight
ToFee Coefficients - A list of coefficients that represent a polynomial.