19 releases (major breaking)

new 16.0.0 May 23, 2024
15.0.0 Apr 30, 2024
14.0.0 Apr 8, 2024
13.0.0 Mar 18, 2024
0.1.0-dev.2 Jul 27, 2023

#2096 in Magic Beans

Download history 9/week @ 2024-02-08 17/week @ 2024-02-15 151/week @ 2024-02-22 73/week @ 2024-02-29 5/week @ 2024-03-07 97/week @ 2024-03-14 19/week @ 2024-03-21 18/week @ 2024-03-28 90/week @ 2024-04-04 17/week @ 2024-04-11 117/week @ 2024-04-25 23/week @ 2024-05-02

140 downloads per month
Used in pallet-examples

MIT-0 license

2MB
36K SLoC

Default Config Example Pallet

An example pallet demonstrating the ability to derive default testing configs via #[derive_impl] and #[pallet::config(with_default)].

Run cargo doc --package pallet-default-config-example --open to view this pallet's documentation.

License: MIT-0


lib.rs:

Default Config Pallet Example

A simple example of a FRAME pallet that utilizes frame_support::derive_impl to demonstrate the simpler way to implement Config trait of pallets. This example only showcases this in a mock.rs environment, but the same applies to a real runtime as well.

See the source code of tests for a real examples.

Study the following types:

Dependencies

~17–32MB
~530K SLoC