radix_engine/blueprints/resource/events/
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 amount: Decimal,
9            }
10
11            impl $name {
12                pub fn new(amount: Decimal) -> Self {
13                    Self { amount }
14                }
15            }
16        )*
17    };
18}
19define_events! {
20    LockFeeEvent,
21    PayFeeEvent,
22    WithdrawEvent,
23    DepositEvent,
24    RecallEvent
25}