referrerpolicy=no-referrer-when-downgrade

pallet_minimal_template/
lib.rs

1//! A shell pallet built with [`frame`].
2//!
3//! To get started with this pallet, try implementing the guide in
4//! <https://paritytech.github.io/polkadot-sdk/master/polkadot_sdk_docs/guides/your_first_pallet/index.html>
5
6#![cfg_attr(not(feature = "std"), no_std)]
7
8use frame::prelude::*;
9use polkadot_sdk::polkadot_sdk_frame as frame;
10
11// Re-export all pallet parts, this is needed to properly import the pallet into the runtime.
12pub use pallet::*;
13
14#[frame::pallet]
15pub mod pallet {
16	use super::*;
17
18	#[pallet::config]
19	pub trait Config: polkadot_sdk::frame_system::Config {}
20
21	#[pallet::pallet]
22	pub struct Pallet<T>(_);
23
24	#[pallet::storage]
25	pub type Value<T> = StorageValue<Value = u32>;
26}