-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e052b57
commit 9deb80f
Showing
8 changed files
with
215 additions
and
38 deletions.
There are no files selected for viewing
Submodule flutter_libmonero
updated
8 files
+32 −0 | cw_core/lib/utxo.dart | |
+20 −9 | cw_core/lib/wallet_base.dart | |
+47 −41 | cw_monero/lib/api/wallet.dart | |
+127 −9 | cw_monero/lib/monero_wallet.dart | |
+44 −37 | cw_wownero/lib/api/wallet.dart | |
+127 −9 | cw_wownero/lib/wownero_wallet.dart | |
+1 −1 | example/lib/main.dart | |
+1 −1 | scripts/prepare_moneroc.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,9 @@ | ||
import 'dart:async'; | ||
|
||
import '../../crypto_currency/intermediate/cryptonote_currency.dart'; | ||
import '../../models/tx_data.dart'; | ||
import '../wallet.dart'; | ||
import '../wallet_mixin_interfaces/coin_control_interface.dart'; | ||
import '../wallet_mixin_interfaces/mnemonic_interface.dart'; | ||
|
||
abstract class CryptonoteWallet<T extends CryptonoteCurrency> extends Wallet<T> | ||
with MnemonicInterface<T> { | ||
with MnemonicInterface<T>, CoinControlInterface<T> { | ||
CryptonoteWallet(super.currency); | ||
|
||
// ========== Overrides ====================================================== | ||
|
||
@override | ||
Future<TxData> confirmSend({required TxData txData}) { | ||
// TODO: implement confirmSend | ||
throw UnimplementedError(); | ||
} | ||
|
||
@override | ||
Future<TxData> prepareSend({required TxData txData}) { | ||
// TODO: implement prepareSend | ||
throw UnimplementedError(); | ||
} | ||
|
||
@override | ||
Future<void> recover({required bool isRescan}) { | ||
// TODO: implement recover | ||
throw UnimplementedError(); | ||
} | ||
|
||
@override | ||
Future<bool> updateUTXOs() async { | ||
// do nothing for now | ||
return false; | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
lib/wallets/wallet/wallet_mixin_interfaces/coin_control_interface.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import '../../crypto_currency/intermediate/bip39_hd_currency.dart'; | ||
import '../intermediate/bip39_hd_wallet.dart'; | ||
import '../../crypto_currency/crypto_currency.dart'; | ||
import '../wallet.dart'; | ||
|
||
mixin CoinControlInterface<T extends Bip39HDCurrency> on Bip39HDWallet<T> { | ||
mixin CoinControlInterface<T extends CryptoCurrency> on Wallet<T> { | ||
// any required here? | ||
// currently only used to id which wallets support coin control | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters