cake_wallet/cw_wownero/lib/api/coins_info.dart

18 lines
520 B
Dart
Raw Normal View History

2024-06-06 21:36:54 +00:00
import 'package:cw_wownero/api/account_list.dart';
import 'package:monero/wownero.dart' as wownero;
wownero.Coins? coins = null;
void refreshCoins(int accountIndex) {
coins = wownero.Wallet_coins(wptr!);
wownero.Coins_refresh(coins!);
}
int countOfCoins() => wownero.Coins_count(coins!);
wownero.CoinsInfo getCoin(int index) => wownero.Coins_coin(coins!, index);
void freezeCoin(int index) => wownero.Coins_setFrozen(coins!, index: index);
void thawCoin(int index) => wownero.Coins_thaw(coins!, index: index);