Function cash_account_from_account_events

Source
pub fn cash_account_from_account_events(
    events: Vec<Bound<'_, PyDict>>,
    calculate_account_state: bool,
) -> PyResult<CashAccount>
Expand description

Constructs a CashAccount from a list of Python dict events.

§Errors

Returns a PyErr if the input events list is empty.

§Panics

Panics if event conversion (py_from_dict) unwrap fails.