66 releases (38 major breaking)

40.1.0 Jan 27, 2025
39.0.5 Dec 20, 2024
39.0.2 Oct 9, 2024
39.0.0 Jul 18, 2024
2.0.0-alpha.5 Mar 24, 2020

#1 in #extrinsic

Download history 105079/week @ 2024-10-30 107744/week @ 2024-11-06 91504/week @ 2024-11-13 84902/week @ 2024-11-20 87382/week @ 2024-11-27 92212/week @ 2024-12-04 82727/week @ 2024-12-11 62754/week @ 2024-12-18 22986/week @ 2024-12-25 60870/week @ 2025-01-01 78482/week @ 2025-01-08 110929/week @ 2025-01-15 94825/week @ 2025-01-22 84542/week @ 2025-01-29 91371/week @ 2025-02-05 99168/week @ 2025-02-12

385,224 downloads per month
Used in 730 crates (530 directly)

Apache-2.0

2MB
26K SLoC

Runtime Modules shared primitive types.

License: Apache-2.0

Release

Polkadot SDK Stable 2412


lib.rs:

Substrate Runtime Primitives.

This crate, among other things, contains a large library of types and utilities that are used in the Substrate runtime, but are not particularly FRAME-oriented.

Block, Header and Extrinsics

Most notable, this crate contains some of the types and trait that enable important communication between the client and the runtime. This includes:

Runtime API Types

This crate also contains some types that are often used in conjuncture with Runtime APIs. Most notable:

  • ApplyExtrinsicResult, and DispatchOutcome, which dictate how the client and runtime communicate about the success or failure of an extrinsic.
  • transaction_validity, which dictates how the client and runtime communicate about the validity of an extrinsic while still in the transaction-queue.

Dependencies

~16–29MB
~464K SLoC