From 095bfc2ff3ea424a8eb4c044f587a783d0a9fcb7 Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 7 Dec 2023 10:56:45 -0600 Subject: [PATCH] WIP spark mint transaction --- .../wallet_mixin_interfaces/spark_interface.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart b/lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart index cf276b664..133a09787 100644 --- a/lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart +++ b/lib/wallets/wallet/wallet_mixin_interfaces/spark_interface.dart @@ -318,6 +318,18 @@ mixin SparkInterface on Bip39HDWallet, ElectrumXInterface { // first then we generate spark related data. And we sign like regular // transactions at the end. + List serialContext = []; + + final mintRecipients = LibSpark.createSparkMintRecipients( + outputs: txData.utxos! + .map((e) => ( + sparkAddress: e.address!, + value: e.value, + memo: "Stackwallet spark mint" + )) + .toList(), + serialContext: Uint8List.fromList(serialContext), + ); throw UnimplementedError(); }