mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-24 12:39:37 +00:00
17 lines
520 B
Dart
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);
|