Skip to main content

betting_account_from_account_events

Function betting_account_from_account_events 

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

Constructs a BettingAccount from a list of Python dict events.

ยงErrors

Returns a PyErr if the input events list is empty.