octopus_engine/
tx.rs

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