currencies property

  1. @override
Map<String, Coin> currencies
override

balances of native tokens indexed by assetId

Implementation

@override
Map<String, Coin> get currencies =>
    transactions.map((t) => t.currencies).expand((m) => m.entries).fold(
        <String, Coin>{},
        (result, entry) =>
            result..[entry.key] = entry.value + (result[entry.key] ?? 0));