mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 12:44:31 +00:00
format unused wallet coins for spark spend
This commit is contained in:
parent
f8a5e44d7b
commit
11edcf30cf
1 changed files with 9 additions and 3 deletions
|
@ -105,9 +105,15 @@ mixin SparkInterface on Bip39HDWallet, ElectrumXInterface {
|
|||
Future<TxData> prepareSendSpark({
|
||||
required TxData txData,
|
||||
}) async {
|
||||
// todo fetch
|
||||
final List<Uint8List> serializedMintMetas = [];
|
||||
final List<LibSparkCoin> myCoins = [];
|
||||
final coins = await mainDB.isar.sparkCoins
|
||||
.where()
|
||||
.walletIdEqualToAnyLTagHash(walletId)
|
||||
.filter()
|
||||
.isUsedEqualTo(false)
|
||||
.findAll();
|
||||
|
||||
final serializedCoins =
|
||||
coins.map((e) => (e.serializedCoinB64!, e.contextB64!)).toList();
|
||||
|
||||
final currentId = await electrumXClient.getSparkLatestCoinId();
|
||||
final List<Map<String, dynamic>> setMaps = [];
|
||||
|
|
Loading…
Reference in a new issue