referrerpolicy=no-referrer-when-downgrade

generate_deposit

Attribute Macro generate_deposit 

Source
#[generate_deposit]
Expand description

Generates a helper function on Pallet that handles deposit events.

NOTE: For instantiable pallets, the event must be generic over T and I.

§Macro expansion

The macro will add on enum Event the attributes:

The macro implements From<Event<..>> for ().

The macro implements a metadata function on Event returning the EventMetadata.

§If #[pallet::generate_deposit] is present then the macro implements fn deposit_event on Pallet.

Documentation for this macro can be found at frame_support::pallet_macros::generate_deposit.