[][src]Crate orml_gradually_update

Gradually Update

A module for scheduling gradually updates to storage values.

Overview

This module exposes capabilities for scheduling updates to storage values gradually. This is useful to change parameter values gradually to ensure a smooth transition. It is also possible to cancel an update before it reaches to target value.

NOTE: Only unsigned integer value up to 128 bits are supported. But a "newtype" pattern struct that wraps an unsigned integer works too such as Permill and FixedU128.

Structs

GraduallyUpdate

Gradually update a value stored at key to target_value, change per_block * T::UpdateFrequency per T::UpdateFrequency blocks.

GraduallyUpdates

All the on-going updates

LastUpdatedAt

The last updated block number

Module

Enums

Call

Dispatchable calls.

Error

Error for gradually-update module.

RawEvent

Events for this module.

Traits

Trait
WeightInfo

Type Definitions

Event

RawEvent specialized for the configuration Trait