Versions in this module Expand all Collapse all v1 v1.36.60 Aug 6, 2026 v1.36.59 Aug 6, 2026 Changes in this version + const GigaLux + const KiloLux + const Lux + const MegaLux + var ErrBoundsIncoherent = errors.New("stakingparams: bounds Lo exceeds Hi") + var ErrEmptyHistory = errors.New("stakingparams: history is empty") + var ErrIncoherent = errors.New("stakingparams: min exceeds max") + var ErrNoChange = errors.New("stakingparams: proposal is identical to current params") + var ErrNotMonotonic = errors.New("stakingparams: history activations must strictly increase") + var ErrOutOfBounds = errors.New("stakingparams: proposal outside compiled-in bounds") + var ErrStepTooLarge = errors.New("stakingparams: exclusionary step exceeds rate limit") + var ErrTooSoon = errors.New("stakingparams: minimum interval between changes not elapsed") + var MainnetBounds = Bounds + var MainnetGenesis = Params + var MainnetRate = Rate + func Accept(cur, next Params, b Bounds, r Rate, elapsed time.Duration) error + type Bounds struct + Hi Params + Lo Params + func (b Bounds) Clamp(p Params) Params + func (b Bounds) Contains(p Params) error + func (b Bounds) Valid() error + type Entry struct + Activation int64 + Params Params + type History []Entry + func (h History) At(t int64) Params + func (h History) Current() Params + func (h History) Valid() error + type Params struct + MaxStakeDuration uint32 + MaxValidatorStake uint64 + MinDelegationFee uint32 + MinStakeDuration uint32 + MinValidatorStake uint64 + UptimeRequirement uint32 + func (p Params) Valid() error + type Rate struct + MaxStep uint32 + MinInterval time.Duration