17 breaking releases

new 0.19.0 Apr 3, 2025
0.18.0 Jan 22, 2025
0.17.0 Jan 13, 2025
0.16.0 Sep 25, 2024
0.0.0 Nov 21, 2022

#638 in Magic Beans

Download history 20437/week @ 2024-12-17 6085/week @ 2024-12-24 12966/week @ 2024-12-31 21431/week @ 2025-01-07 33661/week @ 2025-01-14 27348/week @ 2025-01-21 24098/week @ 2025-01-28 27823/week @ 2025-02-04 34842/week @ 2025-02-11 30075/week @ 2025-02-18 4548/week @ 2025-02-25 2718/week @ 2025-03-04 4064/week @ 2025-03-11 2523/week @ 2025-03-18 3114/week @ 2025-03-25 1749/week @ 2025-04-01

12,030 downloads per month
Used in 22 crates (6 directly)

Apache-2.0 and GPL-3.0-only

64KB
726 lines

Cumulus timestamp related primitives.

Provides a InherentDataProvider that should be used in the validation phase of the parachain. It will be used to create the inherent data and that will be used to check the inherents inside the parachain block (in this case the timestamp inherent). As we don't have access to any clock from the runtime the timestamp is always passed as an inherent into the runtime. To check this inherent when validating the block, we will use the relay chain slot. As the relay chain slot is derived from a timestamp, we can easily convert it back to a timestamp by multiplying it with the slot duration. By comparing the relay chain slot derived timestamp with the timestamp we can ensure that the parachain timestamp is reasonable.

Dependencies

~24–38MB
~648K SLoC