1
2
3
4
5
6
7
8
9
use serde::{Deserialize, Serialize};

/// A transaction type. Transactions should be able to rebuild a ledger's state
/// when they are applied in the same sequence to an empty state.
#[derive(Debug, PartialEq, Eq, Clone, Deserialize, Serialize)]
pub enum Tx {
    Deposit { account: String, amount: u64 },
    Withdraw { account: String, amount: u64 },
}