format unused wallet coins for spark spend

This commit is contained in:
julian 2023-12-18 15:12:16 -06:00
parent f8a5e44d7b
commit 11edcf30cf

View file

@ -105,9 +105,15 @@ mixin SparkInterface on Bip39HDWallet, ElectrumXInterface {
Future<TxData> prepareSendSpark({ Future<TxData> prepareSendSpark({
required TxData txData, required TxData txData,
}) async { }) async {
// todo fetch final coins = await mainDB.isar.sparkCoins
final List<Uint8List> serializedMintMetas = []; .where()
final List<LibSparkCoin> myCoins = []; .walletIdEqualToAnyLTagHash(walletId)
.filter()
.isUsedEqualTo(false)
.findAll();
final serializedCoins =
coins.map((e) => (e.serializedCoinB64!, e.contextB64!)).toList();
final currentId = await electrumXClient.getSparkLatestCoinId(); final currentId = await electrumXClient.getSparkLatestCoinId();
final List<Map<String, dynamic>> setMaps = []; final List<Map<String, dynamic>> setMaps = [];