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(); final freezeCoinNative = moneroApi .lookup>('freeze_coin') .asFunction(); final thawCoinNative = moneroApi .lookup>('thaw_coin') .asFunction(); void refreshCoins(int accountIndex) => refreshCoinsNative(accountIndex); int countOfCoins() => coinsCountNative(); CoinsInfoRow getCoin(int index) => coinNative(index).ref; void freezeCoin(int index) => freezeCoinNative(index); void thawCoin(int index) => thawCoinNative(index);