Questions tagged [trait]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
21 views

decl_storage macro syntax

decl_storage! { trait Store for Module<T: Trait> as KittyStorage { Kitties get(kitty): map T::Hash => Kitty<T::Hash, T::Balance>; What is this for use? What is Store ? is ...
user avatar
1 vote
1 answer
17 views

Explanation on this syntax: pub trait Config<I: 'static = ()>: frame_system::Config

I was contributing on pallet-assets and I found it hard to understand this syntax: pub trait Config<I: 'static = ()>: frame_system::Config Care to explain in details and examples?
user avatar