mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
20 lines
518 B
Rust
20 lines
518 B
Rust
|
|
#[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::*;
|