import 'dart:ffi'; import 'package:cw_monero/api/signatures.dart'; import 'package:cw_monero/api/structs/coins_info_row.dart'; import 'package:cw_monero/api/types.dart'; import 'package:cw_monero/api/monero_api.dart'; final refreshCoinsNative = moneroApi .lookup>('refresh_coins') .asFunction(); final coinsCountNative = moneroApi .lookup>('coins_count') .asFunction(); final coinNative = moneroApi .lookup>('coin') .asFunction(); void refreshCoins(int accountIndex) => refreshCoinsNative(accountIndex); int countOfCoins() => coinsCountNative(); CoinsInfoRow getCoin(int index) => coinNative(index).ref;