mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Skeleton ruintime with new types
This commit is contained in:
19
substrate/runtime/src/core_pallet.rs
Normal file
19
substrate/runtime/src/core_pallet.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
#[frame_support::pallet]
|
||||
mod core_pallet {
|
||||
use ::alloc::*;
|
||||
use frame_system::pallet_prelude::*;
|
||||
use frame_support::pallet_prelude::*;
|
||||
|
||||
#[pallet::storage]
|
||||
pub type NextNonce<T: Config> =
|
||||
StorageMap<_, Blake2_128Concat, T::AccountId, T::Nonce, ValueQuery>;
|
||||
#[pallet::storage]
|
||||
pub type Blocks<T: Config> = StorageMap<_, Identity, T::Hash, (), OptionQuery>;
|
||||
|
||||
#[pallet::config]
|
||||
pub trait Config: frame_system::Config {}
|
||||
|
||||
#[pallet::pallet]
|
||||
pub struct Pallet<T>(_);
|
||||
}
|
||||
pub(super) use core_pallet::*;
|
||||
Reference in New Issue
Block a user