radix-engine 1.3.1

Reference implementation of Radix Engine, from the Radix DLT project.
Documentation
use crate::internal_prelude::*;

macro_rules! define_events {
    ($($name: ident),* $(,)?) => {
        $(
            #[derive(ScryptoSbor, ScryptoEvent, PartialEq, Eq, Debug)]
            pub struct $name {
                pub amount: Decimal,
            }

            impl $name {
                pub fn new(amount: Decimal) -> Self {
                    Self { amount }
                }
            }
        )*
    };
}
define_events! {
    LockFeeEvent,
    PayFeeEvent,
    WithdrawEvent,
    DepositEvent,
    RecallEvent
}