In the examples I've seen so far I can see that all the [pallet::*]
definitions are within the #[frame_support::pallet]
module.
Is there any way we can split these into separate modules? For example would it be possible to create a storage.rs
module and add the storages there like so
#[pallet::storage]
pub(super) type TotalSupply<T: crate::Config> = StorageValue<_, u64, ValueQuery>;
The issue I'm facing is that I can't seem to find how to import the pallet::storage
macro.
#[pallet::storage]
definitions. I think its not possible, or at least I was not able to do so, but sometimes you can have a lot ofstorage
items, so it would be nice to move everything that is not an extrinsic outside of the lib.rs#[pallet::call]
), custom data structures, custom enums and of course, tests, mocks and benchmarks. But I'm not sure you can remove things that are declared within thepub mod pallet {...}
scope