radix_engine/blueprints/resource/events/
non_fungible_vault.rs

1use crate::internal_prelude::*;
2
3macro_rules! define_events {
4    ($($name: ident),* $(,)?) => {
5        $(
6            #[derive(ScryptoSbor, ScryptoEvent, PartialEq, Eq, Debug)]
7            pub struct $name {
8                pub ids: IndexSet<NonFungibleLocalId>,
9            }
10
11            impl $name {
12                pub fn new(ids: IndexSet<NonFungibleLocalId>) -> Self {
13                    Self { ids }
14                }
15            }
16        )*
17    };
18}
19define_events! {
20    WithdrawEvent,
21    DepositEvent,
22    RecallEvent
23}