# Crate sp_weights

source ·## Expand description

## Modules

## Structs

- Implementor of
`WeightToFee`

that uses a constant multiplier. - A list of coefficients that represent a polynomial.
- Implementor of
`WeightToFee`

such that it maps any unit of weight to a fixed fee. - Implementor of
`WeightToFee`

that maps one unit of weight to one unit of fee. - OldWeightDeprecatedThe old weight type.
- The weight of database operations that the runtime can invoke.
- Meters consumed weight and a hard limit for the maximal consumable weight.
- One coefficient and its position in the
`WeightToFee`

.

## Traits

- A trait that describes the weight to fee calculation.
- A trait that describes the weight to fee calculation as polynomial.

## Type Aliases

- An implementation of
`WeightToFee`

that collects no fee. - A list of coefficients that represent a polynomial.