displayed_currencies = set(diff.keys())
for wealth in wealth_before, wealth_after:
wealth.ensure_currencies(displayed_currencies)
wealth.purge_currencies_except(displayed_currencies)
node: dict[str, Any] = {
'name': path,
displayed_currencies = set(diff.keys())
for wealth in wealth_before, wealth_after:
wealth.ensure_currencies(displayed_currencies)
wealth.purge_currencies_except(displayed_currencies)
node: dict[str, Any] = {
'name': path,
'wealth_before': wealth_before.moneys,
'wealth_diff': diff,
'wealth_after': wealth_after.moneys,
'wealth_before': wealth_before.moneys,
'wealth_diff': diff,
'wealth_after': wealth_after.moneys,