cake_wallet/cw_wownero/lib/api/coins_info.dart
2024-06-06 23:36:54 +02:00

17 lines
520 B
Dart

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);